REDIVIVUS

Proposals / #695

Mac: companion to #433 (MISSILES_ClearDamageStruct's nMissileId to D2UnitStrc *)

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

Ghidra vmac 106 · d52cd0a

Mac twin of Windows #433 with the same body: the second stack parameter nMissileId is compared with 0 and then dereferenced at +4 (D2UnitStrc.nClassId, handed to GetElemTypeFromMissileId), so it is the missile unit, not an id. Same-width retype; the misleading name is left to review as in #433. Mac callers were not individually traced (the only caller is Missiles_SrvDmgFunc_RecalcElementalWithClear).

Changes 1, applied together

  1. Retype variable mac 0x001cbdcc Stack[0x8]

    typeint32_t→D2UnitStrc *