diff options
| author | sucofog <4pdcvicente@gmail.com> | 2017-11-14 22:50:25 +0100 |
|---|---|---|
| committer | sucofog <4pdcvicente@gmail.com> | 2017-11-14 22:50:25 +0100 |
| commit | 3b73e99ec8c511707cb096e2607a18f1ef95b8fe (patch) | |
| tree | 7b85a379832ca68ba3d2a0d18e6e16e8caa7a179 /src/game/AI/SmartScripts/SmartScriptMgr.cpp | |
| parent | 1ea009e255dc371e5d0d3b98a0b33867a0927cb8 (diff) | |
| parent | e772b08c6808bae29db96ed2f51ee5b34d768da4 (diff) | |
Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk
Diffstat (limited to 'src/game/AI/SmartScripts/SmartScriptMgr.cpp')
| -rw-r--r-- | src/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/game/AI/SmartScripts/SmartScriptMgr.cpp index 3af8f9adc3..f133d0b35e 100644 --- a/src/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -429,7 +429,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) sLog->outErrorDb("SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses non-existent Map entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.event.respawn.map); return false; } - if (e.event.respawn.type == SMART_SCRIPT_RESPAWN_CONDITION_AREA && !GetAreaEntryByAreaID(e.event.respawn.area)) + if (e.event.respawn.type == SMART_SCRIPT_RESPAWN_CONDITION_AREA && !sAreaTableStore.LookupEntry(e.event.respawn.area)) { sLog->outErrorDb("SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses non-existent Area entry %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.event.respawn.area); return false; |
