diff options
| author | treeston <treeston.mmoc@gmail.com> | 2016-09-14 23:53:37 +0200 |
|---|---|---|
| committer | treeston <treeston.mmoc@gmail.com> | 2016-09-20 00:37:36 +0200 |
| commit | 6d00d3f28380dd0811a18913450b1dc4f07fef48 (patch) | |
| tree | 4367f426d2c48a718cade01216e2da407fa9633f /src/server/game/AI/SmartScripts | |
| parent | 0b658f789cab005c080941e2be33e855debcbfde (diff) | |
Core/Movement: Add new SplineChainMovementGenerator that allows accurate replication of sniffed waypoints in static sequences, along with DB facilities that allow loading of waypoints from DB.
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -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 d7051e10988..d1995c9a91d 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.cpp @@ -573,7 +573,7 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e) } case SMART_EVENT_MOVEMENTINFORM: { - if (e.event.movementInform.type > NULL_MOTION_TYPE) + if (e.event.movementInform.type >= MAX_MOTION_TYPE) { TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry %d SourceType %u Event %u Action %u uses invalid Motion type %u, skipped.", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType(), e.event.movementInform.type); return false; |
