From aa2ab57539750a8060f8e8ed6ce184f2a7206e8c Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sat, 6 Aug 2022 00:52:51 +0200 Subject: [PATCH] items: add BUGFIX for SpawnItem, uninitialized use of onlygood --- Source/items.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/items.cpp b/Source/items.cpp index 052465fe627..56082c580ee 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2962,6 +2962,7 @@ void SetupAllItems(int ii, int idx, int iseed, int lvl, int uper, BOOL onlygood, void SpawnItem(int m, int x, int y, BOOL sendmsg) { int ii, idx; + // BUGFIX: onlygood may be used uninitialized in call to SetupAllItems. BOOL onlygood; if (monster[m]._uniqtype || ((monster[m].MData->mTreasure & 0x8000) && gbMaxPlayers != 1)) {