[-] Fixed assert for transformaed units
This commit is contained in:
parent
16ab7b89f4
commit
cb5b7d32bc
1 changed files with 3 additions and 0 deletions
|
@ -729,6 +729,9 @@ void CommandUpgradeTo(CUnit &unit, CUnitType &type, int flush)
|
|||
*/
|
||||
void CommandTransformIntoType(CUnit &unit, CUnitType &type)
|
||||
{
|
||||
if (unit.CriticalOrder && unit.CriticalOrder->Action == UnitActionTransformInto) {
|
||||
return;
|
||||
}
|
||||
Assert(unit.CriticalOrder == NULL);
|
||||
|
||||
unit.CriticalOrder = COrder::NewActionTransformInto(type);
|
||||
|
|
Loading…
Reference in a new issue