Core/Movement: first batch of followup commits

This commit is contained in:
Ovahlord
2018-08-02 16:03:19 +02:00
parent c808b981f7
commit 075a79dac1
13 changed files with 52 additions and 50 deletions

View File

@@ -73,7 +73,7 @@ void MotionMaster::Initialize()
// clear ALL movement generators (including default)
while (!empty())
{
MovementGenerator *curr = top();
MovementGenerator* curr = top();
pop();
if (curr)
DirectDelete(curr);
@@ -862,7 +862,7 @@ void MotionMaster::DirectDelete(MovementGenerator* curr)
void MotionMaster::DelayedDelete(MovementGenerator* curr)
{
TC_LOG_FATAL("misc", "Unit (Entry %u) is trying to delete its updating Movement Generator (Type %u)!", _owner->GetEntry(), curr->GetMovementGeneratorType());
TC_LOG_DEBUG("misc", "MotionMaster::DelayedDelete: unit (%u) delayed deleting movement generator (type %u)", _owner->GetEntry(), curr->GetMovementGeneratorType());
if (IsStatic(curr))
return;