mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Don't use singleton to access static functions.
* This affects especially ObjectMgr functions: - GetCreatureInfo - GetGameObjectInfo - GetInstanceTemplate These are in fact static functions.
This commit is contained in:
parent
34dab079c4
commit
1f23884757
40 changed files with 104 additions and 104 deletions
|
|
@ -495,7 +495,7 @@ void PoolHandler::LoadFromDB()
|
|||
sLog.outErrorDb("`pool_gameobject` has a non existing gameobject spawn (GUID: %u) defined for pool id (%u), skipped.", guid, pool_id );
|
||||
continue;
|
||||
}
|
||||
GameObjectInfo const* goinfo = objmgr.GetGameObjectInfo(data->id);
|
||||
GameObjectInfo const* goinfo = ObjectMgr::GetGameObjectInfo(data->id);
|
||||
if (goinfo->type != GAMEOBJECT_TYPE_CHEST &&
|
||||
goinfo->type != GAMEOBJECT_TYPE_GOOBER &&
|
||||
goinfo->type != GAMEOBJECT_TYPE_FISHINGHOLE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue