REDIVIVUS

Proposals / #712

Retype CLIENT_StoreUnitGuidForQuestTracking's pUnit to D2UnitStrc *

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

The ECX parameter is a unit: after a null test the body copies its +0xc (D2UnitStrc.nUnitGUID) into gnQuestMonsterUnitId. The only caller, MONUNIQUE_DispatchDeathEffect(D2UnitStrc * pUnit, ...), calls it with ECX unchanged from its entry (the function never writes ECX; the same register is dereferenced at +4 and +0x10 as nClassId / eAnimMode). Same-width retype; name kept.

Changes 1, applied together

  1. Retype variable win 0x0046bc70 ECX

    typeint32_t→D2UnitStrc *