Browse Source

Fix issue with Hellfire items morphing when transferred to Diablo

pull/7814/head
staphen 1 year ago committed by Anders Jenbo
parent
commit
ec9f8ff685
  1. 4
      Source/pack.cpp

4
Source/pack.cpp

@ -332,7 +332,9 @@ void UnPackItem(const ItemPack &packedItem, const Player &player, Item &item, bo
RecreateEar(item, ic, iseed, ivalue & 0xFF, heroName);
} else {
item = {};
item.dwBuff = SDL_SwapLE32(packedItem.dwBuff);
// Item generation logic will assign CF_HELLFIRE based on isHellfire
// so if we carry it over from packedItem, it may be incorrect
item.dwBuff = SDL_SwapLE32(packedItem.dwBuff) & ~CF_HELLFIRE;
RecreateItem(player, item, idx, SDL_SwapLE16(packedItem.iCreateInfo), SDL_SwapLE32(packedItem.iSeed), SDL_SwapLE16(packedItem.wValue), isHellfire);
item._iIdentified = (packedItem.bId & 1) != 0;
item._iMaxDur = packedItem.bMDur;

Loading…
Cancel
Save