diff --git a/src/droid.cpp b/src/droid.cpp index 185ba7158ab..ec4e25612be 100644 --- a/src/droid.cpp +++ b/src/droid.cpp @@ -2183,7 +2183,7 @@ bool calcDroidMuzzleBaseLocation(const DROID *psDroid, Vector3i *muzzle, int wea CHECK_DROID(psDroid); - if (psBodyImd && !psBodyImd->connectors.empty()) + if (psBodyImd && static_cast(weapon_slot) < psBodyImd->connectors.size()) { Vector3i barrel(0, 0, 0);