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
parent
3da5952483
commit
701abfdaa1
2
src/ai.c
2
src/ai.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue