Browse Source

[hellfire] GetItemPower

pull/944/head
Anders Jenbo 5 years ago
parent
commit
5b085ad957
  1. 9
      Source/items.cpp

9
Source/items.cpp

@ -2524,7 +2524,16 @@ void GetItemPower(int i, int minlvl, int maxlvl, int flgs, BOOL onlygood)
}
}
if (!control_WriteStringToBuffer((BYTE *)item[i]._iIName)) {
#ifdef HELLFIRE
int aii = item[i].IDidx;
if (AllItemsList[aii].iSName)
strcpy(item[i]._iIName, AllItemsList[aii].iSName);
else
item[i]._iName[0] = 0;
#else
strcpy(item[i]._iIName, AllItemsList[item[i].IDidx].iSName);
#endif
if (preidx != -1) {
sprintf(istr, "%s %s", PL_Prefix[preidx].PLName, item[i]._iIName);
strcpy(item[i]._iIName, istr);

Loading…
Cancel
Save