Initialize var to null

This commit is contained in:
tong 2020-07-05 13:25:10 +02:00
parent be6dad2682
commit 313bbbfa84

View file

@ -11,7 +11,7 @@ class Starter {
public static function main(scene: String, mode: Int, resize: Bool, min: Bool, max: Bool, w: Int, h: Int, msaa: Int, vsync: Bool, getRenderPath: Void->iron.RenderPath) {
var tasks : Int;
var tasks : Int = null;
function start() {
if (tasks > 0) return;