REDIVIVUS

Proposals / #1428

Mac SUNITINACTIVE_AllocOrFindInactiveList: D2InactiveUnitListStrc* __fastcc (pGame, nAct, nX, nY, bCreate)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1268 with the Mac register convention __fastcc, as the reviewer asked; parameters are unchanged. ECX = pGame, EDX = nAct (index into [pGame+nAct*4+0xd8]), [EBP+8] = nX, [EBP+0xc] = nY, [EBP+0x10] = create flag. It returns the node. Caller 0x00283a3f. Windows twin 0x00541d20.

Changes 1, applied together

  1. Set prototype mac 0x00283887

    signatureundefined SUNITINACTIVE_AllocOrFindInactiveList(void)→D2InactiveUnitListStrc* SUNITINACTIVE_AllocOrFindInactiveList(D2GameStrc* pGame, int32_t nAct, int32_t nX, int32_t nY, int32_t bCreate)
    conventionunknown→__fastcc