mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
M_PopulateChallengeGrid: Fix memory corruption on fresh gamedata creation
This commit is contained in:
parent
e74d01660f
commit
c0e4e4075b
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ void M_PopulateChallengeGrid(void)
|
||||||
I_Error("M_PopulateChallengeGrid: was not able to allocate grid");
|
I_Error("M_PopulateChallengeGrid: was not able to allocate grid");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < MAXUNLOCKABLES; ++i)
|
for (i = 0; i < (gamedata->challengegridwidth * CHALLENGEGRIDHEIGHT); ++i)
|
||||||
{
|
{
|
||||||
gamedata->challengegrid[i] = MAXUNLOCKABLES;
|
gamedata->challengegrid[i] = MAXUNLOCKABLES;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue