Mac PLRSAVE_RestoreItemToBodyLoc: int __fastcc (pGame, pUnit, pItemToRestore, pParentItem)
Resubmit of #1230. It was approved, but the write was refused because a local at Stack[-0x14] is already named pItem, so the third parameter is now pItemToRestore. ECX -> [EBP-0x14] and EDX -> [EBP-0x18] become args 1 and 2 (pGame, pUnit) of PutItemInItem at 0x002096bb. [EBP+8] = the item (GUID [EDI+0xc]), [EBP+0xc] = the parent item (GUID [EBX+0xc]). It returns a status in EAX. Windows twin 0x00531520.
Changes 1, applied together
Set prototype
mac 0x0020961bsignatureundefined PLRSAVE_RestoreItemToBodyLoc(void)→int PLRSAVE_RestoreItemToBodyLoc(D2GameStrc* pGame, D2UnitStrc* pUnit, D2UnitStrc* pItemToRestore, D2UnitStrc* pParentItem)conventionunknown→__fastcc