REDIVIVUS

Proposals / #1130

Mac: retype STATES_CheckState's pUnit to D2UnitStrc * (retype only)

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

Ghidra v115 · 8222e32

Mac-only function (no Windows twin). pUnit is null-checked, then [pUnit+0x5c] is loaded and its +0x10 flags tested (0x196ef0, 0x196ef7), the D2UnitStrc.pStatListEx / D2StatListExStrc pattern. Same width int -> pointer, name unchanged. Callers not traced.

Changes 1, applied together

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

    typeint→D2UnitStrc *