Fix multiturret droids trying to look at invalid weapon slots of structures when looking at their targets.

Fixes a desynch when multiturreted droids are present.
master
Cyp 2010-11-19 17:23:05 +01:00
parent 3da5952483
commit 701abfdaa1
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ SDWORD aiBestNearestTarget(DROID *psDroid, BASE_OBJECT **ppsObj, int weapon_slot
psTarget = targetInQuestion;
}
}
else if (psStruct->asWeaps[weapon_slot].nStat > 0)
else if (psStruct->asWeaps[0].nStat > 0)
{
// structure with weapons - go for this
psTarget = targetInQuestion;