aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/SmartScripts
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-02-06 17:53:37 +0100
committerShauren <shauren.trinity@gmail.com>2016-05-20 23:48:48 +0200
commit885d9b53c38662e00e3b4977b82e9cf36d197f94 (patch)
tree913178bb8bdc6d4b9d722202b3255733329556d0 /src/server/game/AI/SmartScripts
parent41ae38d94d627f1945dc1aed46837068b83ed654 (diff)
Core/DataStores: Updated dbc/db2 to 7.0.1.20994
Diffstat (limited to 'src/server/game/AI/SmartScripts')
-rw-r--r--src/server/game/AI/SmartScripts/SmartScriptMgr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
index 6a0ee3b11e2..a869699dbec 100644
--- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
+++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp
@@ -1168,8 +1168,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
return false;
}
- PhaseEntry const* phase = sPhaseStore.LookupEntry(phaseId);
- if (!phase)
+ if (!sPhaseStore.LookupEntry(phaseId))
{
TC_LOG_ERROR("sql.sql", "SmartScript: SMART_ACTION_SET_INGAME_PHASE_ID uses invalid phaseid %u for creature " SI64FMTD ", skipped", phaseId, e.entryOrGuid);
return false;