REDIVIVUS

Proposals / #714

Mac: companions to Windows #712 and #713 (quest-tracking unit, skill-target alignment unit)

rejected · by Captain-Fwiffo · submitted 2026-11-01, rejected 2026-11-01

Mac twins of already-proposed Windows fixes with the same body semantics. CLIENT_StoreUnitGuidForQuestTracking: pUnit is a unit; the body copies its +0xc (nUnitGUID) into gnQuestMonsterUnitId after a null test. UNITS_CheckSkillTargetAlignment: pnParam is the casting/owning unit; the body tests [0] == 0 (eUnitType == UNIT_PLAYER) and compares the target's owner GUID with [3] (+0xc, nUnitGUID). Same-width retypes; names kept. Mac callers were not individually traced.

Changes 2, applied together

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

    typeint32_t→D2UnitStrc *
  2. Retype variable mac 0x0027af78 Stack[0x8]

    typeint *→D2UnitStrc *