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:
1 parent
3bc3fa1b3b
commit
9b2df26024
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user