From fe82c0b1f17077b3d9a4586cc78fe2be8970f83b Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 15 Apr 2020 16:52:42 +0200 Subject: [PATCH] Clean up GetItemPower Thanks @tsunamistate for bringing attention to this --- Source/items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/items.cpp b/Source/items.cpp index c49429b85..d1b93fb0a 100644 --- a/Source/items.cpp +++ b/Source/items.cpp @@ -1694,7 +1694,7 @@ void GetItemPower(int i, int minlvl, int maxlvl, int flgs, BOOL onlygood) } } } - if (nl != 0) { + if (nt != 0) { preidx = l[random_(23, nt)]; sprintf(istr, "%s %s", PL_Prefix[preidx].PLName, item[i]._iIName); strcpy(item[i]._iIName, istr);