[8507] Check amount of spawned pools before decrement to avoid unexpected result.

Also rename variable to more meaningful name.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2009-09-17 21:51:18 +02:00
parent 00cfea3b46
commit 9b9873a074
3 changed files with 10 additions and 7 deletions

View file

@ -59,7 +59,7 @@ class PoolGroup
uint32 CacheValue; // Store the guid of the removed creature/gameobject during a pool update
PoolObjectList ExplicitlyChanced;
PoolObjectList EqualChanced;
uint32 Spawned; // Used to know the number of spawned objects
uint32 m_SpawnedPoolAmount; // Used to know the number of spawned objects
};
class Pool // for Pool of Pool case