Merge pull request #1759 from tong/fix-starter-null-var

Fix initialize var to null
This commit is contained in:
Lubos Lenco 2020-07-07 07:27:37 +02:00 committed by GitHub
commit 065ef68f3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 = 0;
function start() {
if (tasks > 0) return;