From 25095b2ee66fc65a4c29d4e16f28e3c073a2c823 Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 12 Apr 2021 04:25:03 +0200 Subject: [PATCH] fix uninitialized --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index 5db6cdd89..d78b19828 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -2784,7 +2784,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 idx; - bool onlygood; + bool onlygood = true; if (monster[m]._uniqtype || ((monster[m].MData->mTreasure & 0x8000) && gbIsMultiplayer)) { idx = RndUItem(m);