diff options
Diffstat (limited to 'src/game/MotionMaster.h')
| -rw-r--r-- | src/game/MotionMaster.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/MotionMaster.h b/src/game/MotionMaster.h index 31694e91420..4d9953c9d15 100644 --- a/src/game/MotionMaster.h +++ b/src/game/MotionMaster.h @@ -68,7 +68,11 @@ class TRINITY_DLL_SPEC MotionMaster //: private std::stack<MovementGenerator *> void push(_Ty _Val) { ++i_top; Impl[i_top] = _Val; } public: - explicit MotionMaster(Unit *unit) : i_owner(unit), i_top(-1) {} + explicit MotionMaster(Unit *unit) : i_owner(unit), i_top(-1) + { + for(int i = 0; i < MAX_MOTION_SLOT; ++i) + Impl[i] = NULL; + } ~MotionMaster(); void Initialize(); |
