0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-21 18:01:15 +00:00

Correct a minor logic error.

We don't want to always add a new autorelease pool, and we certainly want
one if there are none.
This commit is contained in:
Bill Currie 2011-03-21 13:12:30 +09:00
parent f5ce9e2004
commit a9e139e14c

View file

@ -24,7 +24,7 @@
+ (void) addObject: (id)anObject
{
if (!poolStack || [poolStack count])
if (!poolStack || ![poolStack count])
[[AutoreleasePool alloc] init];
[[poolStack lastObject] addObject: anObject];