summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 46657322..fcdc2ee2 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -263,7 +263,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
killerName = "<world>";
}
- if( meansOfDeath < 0 || meansOfDeath >= sizeof( modNames ) / sizeof( modNames[0] ) )
+ if( meansOfDeath < 0 || meansOfDeath >= ARRAY_LEN( modNames ) )
// fall back on the number
obit = va( "%d", meansOfDeath );
else