summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/precache.c4
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;
}