From 956b3f985f7c023ae058f79fff9e63af02e0eb2d Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 29 May 2023 23:54:17 +0100 Subject: [PATCH] Do not leave uninitialised memory for dummywindata best_placement emerald collection --- src/g_game.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/g_game.c b/src/g_game.c index 89bc1c0fd..8a65caaac 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -5118,8 +5118,7 @@ void G_LoadGameData(void) dummywindata[j].best_placement = (rtemp & 0x0F); dummywindata[j].best_grade = (rtemp & 0x70)>>4; - if (rtemp & 0x80) - dummywindata[j].got_emerald = true; + dummywindata[j].got_emerald = !!(rtemp & 0x80); dummywindata[j].best_skin.id = MAXSKINS; dummywindata[j].best_skin.unloaded = NULL;