Fix crash when attempting to read a sensor tower's droid type.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7882 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
69c61c2d3e
commit
081e5ab566
|
@ -4289,7 +4289,7 @@ BOOL droidSensorDroidWeapon(BASE_OBJECT *psObj, DROID *psDroid)
|
||||||
//finally check the right droid/sensor combination
|
//finally check the right droid/sensor combination
|
||||||
// check vtol droid with commander
|
// check vtol droid with commander
|
||||||
if ((isVtolDroid(psDroid) || !proj_Direct(asWeaponStats + psDroid->asWeaps[0].nStat)) &&
|
if ((isVtolDroid(psDroid) || !proj_Direct(asWeaponStats + psDroid->asWeaps[0].nStat)) &&
|
||||||
((DROID *)psObj)->droidType == DROID_COMMAND)
|
psObj->type == OBJ_DROID && ((DROID *)psObj)->droidType == DROID_COMMAND)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue