examples/mnit_ballz: fix call on nullable receiver warnings
[nit.git] / examples / mnit_ballz / src / ballz_linux.nit
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