rest-of-code: prepare for new init
[nit.git] / examples / shoot / src / shoot_logic.nit
index 907b8b1..3443a47 100644 (file)
@@ -209,7 +209,7 @@ class Missile
        super Shoot
 
        # The target aquired by the missile
-       var target: nullable Sprite
+       var target: nullable Sprite = null
 
        # When ttl is 0 then the angle stay fixed
        # The angle is updated toward the target if ttl>0