diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-09-19 14:41:21 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-09-19 14:41:21 +0200 |
commit | a11bee31c39923e9129b457db5c6842e3693b3fb (patch) | |
tree | 5a39d5358a2b25bb77af604f3e5ac5ccb7e405b4 /src | |
parent | 7c3f40b6b71c8429ab12829dc6a66d312f3fbd9c (diff) |
Core/SmartAI: Corrected validation check for SAI action summon, type parameter
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp index 475d6e440c1..f03e278a133 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -638,7 +638,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) } case SMART_ACTION_SUMMON_CREATURE: if (!IsCreatureValid(e, e.action.summonCreature.creature)) return false; - if (e.action.summonCreature.type > TEMPSUMMON_MANUAL_DESPAWN) + if (e.action.summonCreature.type < TEMPSUMMON_TIMED_OR_DEAD_DESPAWN || e.action.summonCreature.type > TEMPSUMMON_MANUAL_DESPAWN) { sLog->outErrorDb("SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses incorrect TempSummonType %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.action.summonCreature.type); return false; |