examples/mnit_ballz: fix call on nullable receiver warnings
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 20 Apr 2016 06:37:33 +0000 (02:37 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 20 Apr 2016 22:40:49 +0000 (18:40 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

examples/mnit_ballz/src/ballz_android.nit
examples/mnit_ballz/src/ballz_linux.nit

index 0f46bfc..ee41e9c 100644 (file)
@@ -46,6 +46,7 @@ redef class App
        redef fun on_create
        do
                super
+               var display = self.display.as(not null)
                game = new Game(display.width.to_f, display.height.to_f)
        end
 
index bd2e563..f3a3db6 100644 (file)
@@ -36,6 +36,7 @@ redef class App
        redef fun on_create
        do
                super
+               var display = self.display.as(not null)
                game = new Game(display.width.to_f, display.height.to_f)
        end