Permalink
Browse files

move array init out too?

  • Loading branch information...
1 parent cd0b45b commit 046ffd0ca00ace7a76df101c67e6433be51c4d42 @rakkarage committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Extensions/TMXGenerator/TMXGenerator.m
View
2 Extensions/TMXGenerator/TMXGenerator.m
@@ -592,6 +592,7 @@ - (NSString*) generateMapXML:(NSError**)error
// add our layers
NSString* tilePropertyVal;
NSString* tileKeyVal;
+ unsigned int mapData[mapHeight][mapWidth];
for (key in layerNames)
{
NSDictionary* dict = [delegate_ layerInfoForName:key];
@@ -604,7 +605,6 @@ - (NSString*) generateMapXML:(NSError**)error
tileKeyVal = [delegate_ tileIdentificationKeyForLayer:key];
- unsigned int mapData[mapHeight][mapWidth];
BOOL hasData = NO;
NSString* tileSetName = [delegate_ tileSetNameForLayer:key];

0 comments on commit 046ffd0

Please sign in to comment.