Do not leave uninitialised memory for dummywindata best_placement emerald collection

This commit is contained in:
toaster 2023-05-29 23:54:17 +01:00
parent 989070c3f1
commit 956b3f985f

View file

@ -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;