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-861f7616d084
master
Guangcong Luo 2009-07-19 21:40:38 +00:00 committed by Git SVN Gateway
parent 69c61c2d3e
commit 081e5ab566
1 changed files with 1 additions and 1 deletions

View File

@ -4289,7 +4289,7 @@ BOOL droidSensorDroidWeapon(BASE_OBJECT *psObj, DROID *psDroid)
//finally check the right droid/sensor combination
// check vtol droid with commander
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;
}