Skip to content

Commit d027420

Browse files
committed
CCPhysicsNode was allowing 33 categories before asserting.
Former-commit-id: abf3ab2
1 parent cd06292 commit d027420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/CCPhysicsNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ -(NSUInteger)indexForCategory:(NSString *)category
517517
{
518518
// Add the category if it doesn't exist yet.
519519
if(![_categories containsObject:category]){
520-
NSAssert(_categories.count <= MAX_CATEGORIES, @"A space can only track up to %d categories.", MAX_CATEGORIES);
520+
NSAssert(_categories.count < MAX_CATEGORIES, @"A space can only track up to %d categories.", MAX_CATEGORIES);
521521
[_categories addObject:category];
522522
}
523523

0 commit comments

Comments
 (0)