Work around crash reported in ticket:2762 where attack order has no object.
parent
600952d5d1
commit
9b4b787c53
|
@ -1590,7 +1590,7 @@ void orderDroidBase(DROID *psDroid, DROID_ORDER_DATA *psOrder)
|
|||
// attacking something while guarding, don't change the order
|
||||
actionDroid(psDroid, DACTION_ATTACK, psOrder->psObj);
|
||||
}
|
||||
else if (!psOrder->psObj->died)
|
||||
else if (psOrder->psObj && !psOrder->psObj->died)
|
||||
{
|
||||
//cannot attack a Transporter with EW in multiPlayer
|
||||
if (game.type == SKIRMISH && electronicDroid(psDroid)
|
||||
|
|
Loading…
Reference in New Issue