Core/ObjectMgr: Refactor sGOStorage
This commit is contained in:
1 parent
3ab83417f5
commit
e2e9431ca3
23 files changed
+327
-280
No files matched your search
@@ -1282,7 +1282,7 @@ class SmartAIMgr
|
||||
}
|
||||
inline bool IsGameObjectValid(SmartScriptHolder e, uint32 entry)
|
||||
{
|
||||
if (!sGOStorage.LookupEntry<GameObjectInfo>(uint32(entry)))
|
||||
if (!sObjectMgr->GetGameObjectTemplate(entry))
|
||||
{
|
||||
sLog->outErrorDb("SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses non-existent GameObject entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), entry);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user