Fixed crash: if unit trained gets the wrong order.
This commit is contained in:
parent
410a0e2adc
commit
f8e57968a0
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue