Fix array index in CanDamage() function - discovered by MARTY

The wrong array element was accessed. However the correct element is the
same value so fixing it does not affect gameplay.
This commit is contained in:
IR4T4 authored and Zack Middleton committed 2018-04-26 11:31:07 -05:00
1 parent 3bc3fa1b3b
commit 9b2df26024
1 file changed
+1 -1
+1 -1
View File
@@ -1141,7 +1141,7 @@ qboolean CanDamage (gentity_t *targ, vec3_t origin) {
VectorCopy(midpoint, dest);
dest[0] += offsetmins[0];
dest[1] += offsetmins[2];
dest[1] += offsetmins[1];
dest[2] += offsetmins[2];
trap_Trace(&tr, origin, vec3_origin, vec3_origin, dest, ENTITYNUM_NONE, MASK_SOLID);