diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-08-21 23:13:02 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-08-21 23:13:02 +0400 |
commit | 0f4a5bea9916bd06f09305ebbcd188b5ae76e023 (patch) | |
tree | 537511851c0fa5c39390efc76d67c2356cfbc802 /src | |
parent | 65b76b01749e9a56e74e641167f2b0df980aa2e2 (diff) |
Fix invalid use of MAX_MODELS constant.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/precache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/precache.c b/src/client/precache.c index 8b76702..bf6447d 100644 --- a/src/client/precache.c +++ b/src/client/precache.c @@ -480,12 +480,12 @@ void CL_UpdateConfigstring(int index) return; } - if (index >= CS_SOUNDS && index < CS_SOUNDS + MAX_MODELS) { + if (index >= CS_SOUNDS && index < CS_SOUNDS + MAX_SOUNDS) { cl.sound_precache[index - CS_SOUNDS] = S_RegisterSound(s); return; } - if (index >= CS_IMAGES && index < CS_IMAGES + MAX_MODELS) { + if (index >= CS_IMAGES && index < CS_IMAGES + MAX_IMAGES) { cl.image_precache[index - CS_IMAGES] = R_RegisterPic(s); return; } |