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);