Merge remote-tracking branch 'systemed/filebank' into filebank
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index 6b30d91cf73bd1ab5cccfc38bb45397eae3dfbeb..990f43bbe946681b92ee50e37e46bcd95101cd0a 100644 (file)
@@ -615,7 +615,7 @@ package net.systemeD.halcyon {
                /* Interaction */
         // TODO: can this be sped up? Hit testing for long ways (that go off the screen) seems to be very slow. */
                public function hitTest(x:Number, y:Number):Way {
-                       if (hitzone.hitTestPoint(x,y,true)) { return entity as Way; }
+                       if (hitzone && hitzone.hitTestPoint(x,y,true)) { return entity as Way; }
                        return null;
                }
        }