REDIVIVUS

Proposals / #1137

Mac AITHINK4_MapAiHandler3_WalkToStoredPosition: cdecl 4-arg prototype

approved · by KierTaylor · submitted 2026-11-05, approved 2026-11-05

Mac 0x002a5042 is "undefined (void)", convention unknown. It is a thin wrapper: pushes [EBP+0x14], [EBP+0xc], [EBP+8] and calls AI_Monster_WalkToStoredPosition (0x002a4eee) at 0x002a505c, then plain RET at 0x002a5068. No ECX/EDX on entry. Same 4-arg shape as the Windows twin 0x005e6ef0 (a 9-byte jump to the same callee).

Changes 1, applied together

  1. Set prototype mac 0x002a5042

    signatureundefined AITHINK4_MapAiHandler3_WalkToStoredPosition(void)→BOOL AITHINK4_MapAiHandler3_WalkToStoredPosition(D2GameStrc * pGame, D2UnitStrc * pUnit, uint32_t dwUnused, int32_t * pPathPos)
    conventionunknown→__cdecl