mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-16 02:26:24 +00:00
I_Error on failed challengegrid malloc
This commit is contained in:
parent
1391cbe01e
commit
8dc2b6bf81
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,11 @@ void M_PopulateChallengeGrid(void)
|
|||
(gamedata->challengegridwidth * CHALLENGEGRIDHEIGHT * sizeof(UINT8)),
|
||||
PU_STATIC, NULL);
|
||||
|
||||
if (!gamedata->challengegrid)
|
||||
{
|
||||
I_Error("M_PopulateChallengeGrid: was not able to allocate grid");
|
||||
}
|
||||
|
||||
memset(gamedata->challengegrid,
|
||||
MAXUNLOCKABLES,
|
||||
(gamedata->challengegridwidth * CHALLENGEGRIDHEIGHT * sizeof(UINT8)));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue