REDIVIVUS

Proposals / #745

Mac: retype DRLGOUTROOM_FindPathBetweenExits' pLevel to D2DrlgLevelStrc *

applied · by Captain-Fwiffo · submitted 2026-11-01, applied 2026-11-02

Ghidra vmac 108 · bc4e150

The first stack parameter is declared int but is the DRLG level: the body reads +0x14 (D2DrlgLevelStrc.pDrlgLevelData, the wilderness data it later writes adjacent-vertex paths into) and +0x1b4 (pDrlg), and the Windows twin 0x006817d0 already types the same parameter D2DrlgLevelStrc * pLevel (a pair is stated in this function's own comment). Same-width retype; name kept. Mac caller (DRLGOUTROOM_LinkOutdoorRoomExits) was not traced.

Changes 1, applied together

  1. Retype variable mac 0x00157e77 Stack[0x4]

    typeint→D2DrlgLevelStrc *