Browse Source

Document BUG in SetupAllItems when recreating unique items.

pull/681/head
Robin Eklind 6 years ago
parent
commit
68a8f07d2b
  1. 9
      Source/items.cpp

9
Source/items.cpp

@ -2078,8 +2078,13 @@ void SetupAllItems(int ii, int idx, int iseed, int lvl, int uper, int onlygood,
if (item[ii]._iMagical != ITEM_QUALITY_UNIQUE)
ItemRndDur(ii);
} else {
if (item[ii]._iLoc != ILOC_UNEQUIPABLE)
GetUniqueItem(ii, iseed);
if (item[ii]._iLoc != ILOC_UNEQUIPABLE) {
//uid = CheckUnique(ii, iblvl, uper, recreate);
//if (uid != UITYPE_INVALID) {
// GetUniqueItem(ii, uid);
//}
GetUniqueItem(ii, iseed); // BUG: the second argument to GetUniqueItem should be uid.
}
}
SetupItem(ii);
}

Loading…
Cancel
Save