mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: fix unsafe 0
This commit is contained in:
@ -18,7 +18,7 @@ struct Point {
|
||||
|
||||
struct App {
|
||||
mut:
|
||||
tui &tui.Context = 0
|
||||
tui &tui.Context = unsafe { 0 }
|
||||
points []Point
|
||||
color tui.Color = colors[0]
|
||||
color_idx int
|
||||
|
@ -19,11 +19,11 @@ const (
|
||||
[heap]
|
||||
struct App {
|
||||
mut:
|
||||
tui &ui.Context = 0
|
||||
tui &ui.Context = unsafe { 0 }
|
||||
mode Mode = Mode.menu
|
||||
width int
|
||||
height int
|
||||
game &Game = 0
|
||||
game &Game = unsafe { 0 }
|
||||
dt f32
|
||||
ticks i64
|
||||
}
|
||||
|
Reference in New Issue
Block a user