Skip to content

Commit

Permalink
Fix multiturret droids trying to look at invalid weapon slots of stru…
Browse files Browse the repository at this point in the history
…ctures when looking at their targets.
  • Loading branch information
Cyp committed Nov 19, 2010
1 parent 0a9b3b4 commit 8d3cbb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,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;
Expand Down

0 comments on commit 8d3cbb0

Please sign in to comment.