Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
raydienull authored Jan 7, 2025
2 parents ebf4761 + 95011cf commit fafd47d
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 fafd47d

Please sign in to comment.