Core/Unit: Fix a crash in GetCurrentMovementGeneratorType(). Author: dr.tenma
Fixes issue #1876 --HG-- branch : trunk
This commit is contained in:
@@ -498,14 +498,14 @@ void MotionMaster::Mutate(MovementGenerator *m, MovementSlot slot)
|
||||
i_top = slot;
|
||||
}
|
||||
|
||||
Impl[slot] = m;
|
||||
if (i_top > slot)
|
||||
needInit[slot] = true;
|
||||
else
|
||||
{
|
||||
m->Initialize(*i_owner);
|
||||
needInit[slot] = false;
|
||||
m->Initialize(*i_owner);
|
||||
}
|
||||
Impl[slot] = m;
|
||||
}
|
||||
|
||||
void MotionMaster::MovePath(uint32 path_id, bool repeatable)
|
||||
|
||||
Reference in New Issue
Block a user