mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
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:
parent
9d418379bf
commit
0cc90a75e3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue