Core/Pools: Allow all gameobject types to be pool members (#28754)

This commit is contained in:
Jeremy
2023-02-05 13:54:25 +01:00
committed by GitHub
parent 5f8cc1a120
commit bb8f713d5f

View File

@@ -568,17 +568,6 @@ void PoolMgr::LoadFromDB()
continue;
}
GameObjectTemplate const* goinfo = sObjectMgr->GetGameObjectTemplate(data->id);
ASSERT(goinfo);
if (goinfo->type != GAMEOBJECT_TYPE_CHEST &&
goinfo->type != GAMEOBJECT_TYPE_FISHINGHOLE &&
goinfo->type != GAMEOBJECT_TYPE_GATHERING_NODE &&
goinfo->type != GAMEOBJECT_TYPE_GOOBER)
{
TC_LOG_ERROR("sql.sql", "`pool_gameobject` has a not lootable gameobject spawn (GUID: {}, type: {}) defined for pool id ({}), skipped.", guid, goinfo->type, pool_id);
continue;
}
auto it = mPoolTemplate.find(pool_id);
if (it == mPoolTemplate.end())
{