Refactoring patch by DevHC

This commit is contained in:
Thilo Schulz committed 2011-03-05 19:20:37 +00:00
1 parent 21668c0616
commit fef4d12d68
31 files changed
+60 -98

No files matched your search

+1 -1
View File
@@ -486,7 +486,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 ) ) {
obit = "<bad obituary>";
} else {
obit = modNames[meansOfDeath];