REDIVIVUS

Proposals / #838

Mac: retype ITEMS_IsCompactSave's pUnit to D2UnitStrc *

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

Ghidra vmac 110 · 9528519

The ECX parameter pUnit (declared int) is null-tested and its +4 (D2UnitStrc.nClassId) is loaded at 0x0017552d to index the items.txt table via TXT_Items_GetLine, from which bCompactSave is returned. Same-width retype of the register parameter; name kept. No Windows twin (inlined there). Mac callers were not traced.

Changes 1, applied together

  1. Retype variable mac 0x00175516 ECX

    typeint→D2UnitStrc *