Fixed crash: if unit trained gets the wrong order.

This commit is contained in:
johns 2002-03-18 01:49:43 +00:00
parent 410a0e2adc
commit f8e57968a0

View file

@ -143,7 +143,7 @@ global void HandleActionTrain(Unit* unit)
|| (unit->NewOrder.Action==UnitActionAttack
&& !nunit->Type->CanAttack) ) {
DebugLevel0Fn("Wrong order for unit\n");
unit->Orders[0].Action=UnitActionStill;
nunit->Orders[0].Action=UnitActionStill;
} else {
if( unit->NewOrder.Goal ) {
if( unit->NewOrder.Goal->Destroyed ) {