Fix a snafu in do_precache.

It seems I copied the code from precache_sound, but forgot to change
MAX_SOUNDS to max.
This commit is contained in:
Bill Currie 2013-01-31 15:22:38 +09:00
parent 9d418379bf
commit 0cc90a75e3

View file

@ -743,7 +743,7 @@ do_precache (progs_t *pr, const char **cache, int max, const char *name,
}
s[i] = 0;
for (i = 0; i < MAX_SOUNDS; i++) {
for (i = 0; i < max; i++) {
if (!cache[i]) {
char *c = Hunk_Alloc (strlen (s) + 1);
strcpy (c, s);