fix warning

This commit is contained in:
Luan Nico
2019-07-15 09:51:04 -03:00
parent 965c5758be
commit 7c00cac2f9

View File

@ -81,7 +81,7 @@ abstract class BaseGame extends Game {
@mustCallSuper @mustCallSuper
void preAdd(Component c) { void preAdd(Component c) {
if (debugMode() && c is PositionComponent) { if (debugMode() && c is PositionComponent) {
(c as PositionComponent).debugMode = true; c.debugMode = true;
} }
// first time resize // first time resize
if (size != null) { if (size != null) {