REDIVIVUS

Proposals / #1445

Mac FindPartyControlSub: D2UnitPartyControlSub* __fastcc (D2GameStrc* pGame ECX, int16_t nPartyId DX)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1254 (approved, then stale because __fastcall is not defined on Mac), now with __fastcc. ECX = pGame (+0x1d2c party control), DX = party id compared with each sub's +0 word. It returns the sub in EAX with a plain RET. Caller PARTY_AddUnitToParty 0x00276a95 uses EAX. Windows twin 0x00540290.

Changes 1, applied together

  1. Set prototype mac 0x00276c1e

    signatureundefined FindPartyControlSub(void)→D2UnitPartyControlSub* FindPartyControlSub(D2GameStrc* pGame, int16_t nPartyId)
    conventionunknown→__fastcc