Reputation: 119
trace('a');
mapData = t.getData(false);
trace('b');
I have absolutely no idea what's going on here. t
is a flixel.tile.FlxTilemap
, by the way.
When I run this code, my game instantly crashes. I get the a
message but not the b
message. Even stranger, I inserted a trace into my copy of FlxTilemap.hx
, right at the start of the definition of getData
, but that trace never runs either. What is going on?
Upvotes: 1
Views: 70
Reputation: 119
This is one of those questions, one of those where it's perfectly natural and you simply forget what you did someplace else.
In my case, as was pointed out, t
wasn't actually set. This is because I reserved floor number 0 for a special area that hasn't been implemented yet... and set it to null
in the meantime...
Upvotes: 1