Recover the Mac spawn-stack-by-class getter's signed count result
Ghidra vmac 111 · 3cfe190
Mac 0x00173d4b currently returns undefined. Its complete body returns a full DWORD from the existing D2ItemsTxt.dwSpawnStack int field at offset236 through the424-byte record lookup. The loader's raw spawnstack descriptor independently specifies FIELDTYPE_INT at236. The sole wrapper returns EAX unchanged; its actual caller then copies full EAX to ECX and uses signed comparisons and32-bit subtraction. Recover int32_t ITEMS_GetSpawnStackFromClassId(uint32_t nItemClassId), preserving the selected names, existing one Stack4 input and __cdecl. This is a complete fresh result correction, not a width/zero-extension inference or a held-target subset. Five complete native bodies3269bytes and31 required data bytes match raw/separate assembly. Opaque copy/compiler/allocator requests and diagnostic IF-return edges remain bounded interfaces, not success/nonreturn guarantees. No support/source/shared-type/ABI edit, runtime or build-gain claim.
Changes 1, applied together
Set prototype
mac 0x00173d4bsignatureundefined ITEMS_GetSpawnStackFromClassId(uint32_t nItemClassId)→int32_t ITEMS_GetSpawnStackFromClassId(uint32_t nItemClassId)convention__cdecl