mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
Precache: fix off by one, making the precache code write into memory it should not be touching
This commit is contained in:
parent
d9298edec1
commit
be0c062c5b
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,7 @@ void R_PrecacheLevel(void)
|
|||
//
|
||||
// no need to precache all software textures in 3D mode
|
||||
// (note they are still used with the reference software view)
|
||||
texturepresent = calloc(numtextures, sizeof (*texturepresent));
|
||||
texturepresent = calloc(numtextures+1, sizeof (*texturepresent));
|
||||
if (texturepresent == NULL) I_Error("%s: Out of memory looking up textures", "R_PrecacheLevel");
|
||||
|
||||
for (j = 0; j < numsides; j++)
|
||||
|
|
Loading…
Reference in a new issue