Core/Pools: Implemented pooling for instances
This commit is contained in:
1 parent
317a9f2d32
commit
0f0b283168
10 files changed
+320
-200
No files matched your search
@@ -309,7 +309,7 @@ public:
|
||||
mapId = fields[6].GetUInt16();
|
||||
phase = fields[7].GetUInt32();
|
||||
poolId = sPoolMgr->IsPartOfAPool<GameObject>(guidLow);
|
||||
if (!poolId || sPoolMgr->IsSpawnedObject<GameObject>(guidLow))
|
||||
if (!poolId || sPoolMgr->IsSpawnedObject<GameObject>(player->GetMap()->GetPoolData(), guidLow))
|
||||
found = true;
|
||||
} while (result->NextRow() && !found);
|
||||
|
||||
|
||||
Reference in new issue
Block a user