Work around crash reported in ticket:2762 where attack order has no object.

master
Per Inge Mathisen 2011-07-11 00:37:45 +02:00
parent 600952d5d1
commit 9b4b787c53
1 changed files with 1 additions and 1 deletions

View File

@ -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)