From ebc0ad94ebe09dd62f912ae83aee3dab5b68d936 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 25 Sep 2021 05:58:51 +0200 Subject: [PATCH] Clean up SetupAllItems initialization --- Source/items.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index 48a40e5b6..b421fbb84 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -1558,8 +1558,6 @@ void ItemRndDur(Item &item) void SetupAllItems(Item &item, int idx, int iseed, int lvl, int uper, bool onlygood, bool recreate, bool pregen) { - int iblvl = -1; - item._iSeed = iseed; SetRndSeed(iseed); GetItemAttrs(item, idx, lvl / 2); @@ -1576,6 +1574,7 @@ void SetupAllItems(Item &item, int idx, int iseed, int lvl, int uper, bool onlyg item._iCreateInfo |= CF_UPER1; if (item._iMiscId != IMISC_UNIQUE) { + int iblvl = -1; if (GenerateRnd(100) <= 10 || GenerateRnd(100) <= lvl) { iblvl = lvl; }