From c6c09e50ffe7774a0cc4b80e8cf748e89e6cd38f Mon Sep 17 00:00:00 2001 From: Jeremy Penner Date: Mon, 7 Feb 2011 17:25:28 -0800 Subject: [PATCH] fix dumb warning --- src/WorldStage.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WorldStage.as b/src/WorldStage.as index ffe8739..05092ac 100644 --- a/src/WorldStage.as +++ b/src/WorldStage.as @@ -235,6 +235,7 @@ package } var rgtok: Array; + var tok: Token; if (Input.mousePressed) { if (Input.check(Key.SHIFT)) // shift-click -- begin view dragging @@ -247,7 +248,7 @@ package // getLayer returns tokens in draw order, which means furthest back first for (var itok:int = rgtok.length - 1; itok >= 0; itok --) { - var tok: Token = rgtok[itok]; + tok = rgtok[itok]; if (tok.collidePoint(tok.x, tok.y, Input.mouseX, Input.mouseY)) { tokSelected = tok; @@ -272,7 +273,7 @@ package { rgtok = []; getLayer(LAYER_TOKENS, rgtok); - for each (var tok:Token in rgtok) + for each (tok in rgtok) { if (tok.FDirty()) {