Skip to content

Commit 041e1c3

Browse files
committed
don't pull UUID's Zero.
1 parent 00b167b commit 041e1c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cocos2d-ui/CCBReader/CCBReader.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,10 +1146,13 @@ -(void)postDeserialization
11461146
NSString * name = task[1];
11471147
int uuid = (int)[task[2] integerValue];
11481148

1149+
if(uuid == 0)
1150+
return;
1151+
11491152
CCNode * mappedNode = nodeMapping[@(uuid)];
11501153
NSAssert(mappedNode != nil, @"CCBReader: Failed to find node UUID:%i", uuid);
11511154
[node setValue:mappedNode forKey:name];
1152-
1155+
11531156
}
11541157
}
11551158

0 commit comments

Comments
 (0)