Skip to content

Commit

Permalink
Merge pull request #1363 from DavideRei/master
Browse files Browse the repository at this point in the history
Reset Item Link when set empty
  • Loading branch information
raydienull authored Jan 7, 2025
2 parents 6a036d5 + fd9d3b2 commit 95011cf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/game/items/CItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3342,7 +3342,17 @@ bool CItem::r_LoadVal( CScript & s ) // Load an item Script
SetUnkZ( s.GetArgCVal() ); // GetEquipLayer()
break;
case IC_LINK:
m_uidLink.SetObjUID(s.GetArgDWVal());
{
CUID uidLink = (CUID)s.GetArgDWVal();
if ((dword)uidLink == 0)
{
m_uidLink.InitUID();
}
else
{
m_uidLink.SetObjUID(uidLink);
}
}
break;

case IC_FRUIT: // m_more2
Expand Down

0 comments on commit 95011cf

Please sign in to comment.