Skip to content

Commit

Permalink
items: add BUGFIX for SpawnItem, uninitialized use of onlygood
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew authored and AJenbo committed Aug 5, 2022
1 parent e60d490 commit aa2ab57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/items.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit aa2ab57

Please sign in to comment.