REDIVIVUS

Proposals / #816

Mac: retype nGridPtr (DRLGGRID_OrFlagOnCellList) and pUnit (CLIENT_StoreUnitGuidForQuestTracking), retype only

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

Ghidra vmac 110 · 9528519

Reworked resubmission of #744 and #714 after review, keeping only the ops the reviewer called correct and current. DRLGGRID_OrFlagOnCellList 0014e1ee compares against [arg+8]/[arg+0xc] and dereferences [arg], matching D2DrlgGridStrc (Windows twin #737 applied). CLIENT_StoreUnitGuidForQuestTracking 0007f92a null-tests its argument and reads [arg+0xc] nUnitGUID. The stale UNITS_CheckSkillTargetAlignment op is dropped. The rename nGridPtr -> pGrid the reviewer wants is refused by the checker (chosen name) and goes in the separate GitHub issue.

Changes 2, applied together

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

    typeint32_t→D2DrlgGridStrc *
  2. Retype variable mac 0x0007f92a Stack[0x4]

    typeint32_t→D2UnitStrc *