From 9b2df260247c1ac4a88456473c1151f1600f75dd Mon Sep 17 00:00:00 2001 From: IR4T4 Date: Thu, 26 Apr 2018 17:52:44 +0200 Subject: [PATCH] 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. --- code/game/g_combat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/g_combat.c b/code/game/g_combat.c index 7e1f1f4e..dd52bf56 100644 --- a/code/game/g_combat.c +++ b/code/game/g_combat.c @@ -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);