REDIVIVUS

Proposals / #1131

Mac: retype DUNGEON_ToggleHasPortalFlag's pRoom to D2RoomStrc * (retype only)

applied · by Captain-Fwiffo · submitted 2026-11-04, applied 2026-11-04

Ghidra v116 · 8222e32

Mac-only function (no Windows twin). pRoom is null-checked, then [pRoom+0x10] is loaded at 0x1666d2 and passed to the flag setter; offset 0x10 of D2RoomStrc is pRoomEx. A caller (Missiles_SrvHitFunc_SetRoomPortalFlag, 0x1d3c18-0x1d3c2c) passes the result of UNITS_GetRoom. Same width int -> pointer, name unchanged. Other callers not traced.

Changes 1, applied together

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

    typeint→D2RoomStrc *