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 2018-04-26 17:52:44 +02:00 committed by Zack Middleton
parent 3bc3fa1b3b
commit 9b2df26024
1 changed files with 1 additions and 1 deletions

View File

@ -1141,7 +1141,7 @@ qboolean CanDamage (gentity_t *targ, vec3_t origin) {
VectorCopy(midpoint, dest); VectorCopy(midpoint, dest);
dest[0] += offsetmins[0]; dest[0] += offsetmins[0];
dest[1] += offsetmins[2]; dest[1] += offsetmins[1];
dest[2] += offsetmins[2]; dest[2] += offsetmins[2];
trap_Trace(&tr, origin, vec3_origin, vec3_origin, dest, ENTITYNUM_NONE, MASK_SOLID); trap_Trace(&tr, origin, vec3_origin, vec3_origin, dest, ENTITYNUM_NONE, MASK_SOLID);