mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 16:37:04 +00:00
[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:
parent
00cfea3b46
commit
9b9873a074
3 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue