REDIVIVUS

Proposals / #1241

Mac SERVERUNIT_GoldAmmountForDeadBody: void __cdecl (pGame, pUnit, pDeadBody, nGoldAmmount)

checked · by KierTaylor · submitted 2026-11-05

Resubmit of #1212 per review, args 2 and 3 in the right order. Mac 0x001fc5c9: [EBP+0xc] is only used for its GUID (0x001fc689) and is 0 at the call 0x001fcfdc, so it is pUnit; [EBP+0x10] goes to ITEMDROP_DropGoldPiles as the drop unit at 0x001fc5f7, so it is pDeadBody; [EBP+0x14] gold amount. cdecl, 4 args, void, plain RET 0x001fc6b8. Matches Windows twin 0x0057f390 order (pGame, pUnit, pDeadBody, nGoldAmmount, ...).

Changes 1, applied together

  1. Set prototype mac 0x001fc5c9

    signatureundefined SERVERUNIT_GoldAmmountForDeadBody(void)→void SERVERUNIT_GoldAmmountForDeadBody(D2GameStrc * pGame, D2UnitStrc * pUnit, D2UnitStrc * pDeadBody, uint32_t nGoldAmmount)
    conventionunknown→__cdecl