1
0
forked from 0ad/0ad

Fix an OOS issue where, on ownership change, units affected by speed-modifying technologies did not update their speed.

This was SVN commit r17215.
This commit is contained in:
wraitii 2015-11-10 23:31:06 +00:00
parent f0deeab899
commit d3ff090ce7

View File

@ -134,6 +134,7 @@ public:
componentManager.SubscribeToMessageType(MT_Update_MotionFormation);
componentManager.SubscribeToMessageType(MT_Update_MotionUnit);
componentManager.SubscribeToMessageType(MT_PathResult);
componentManager.SubscribeToMessageType(MT_OwnershipChanged);
componentManager.SubscribeToMessageType(MT_ValueModification);
componentManager.SubscribeToMessageType(MT_Deserialized);
}
@ -427,6 +428,7 @@ public:
break;
}
// fall-through
case MT_OwnershipChanged:
case MT_Deserialized:
{
CmpPtr<ICmpValueModificationManager> cmpValueModificationManager(GetSystemEntity());