mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The client indexes a table's id map (store +0x08) by id and refuses only an id above the largest id (+0x0C, signed, so negatives too) and an empty slot (0x005F4010: test/jl, cmp/jg, null test). DBC::Record also refused id 0, which is a real row in Map.dbc (Eastern Kingdoms), TerrainType and ItemClass (Consumable); every other table leaves slot 0 empty, so it still returns null there. Effects: map 0 now has its directory, so scene:SetWorldTerrain(0, ...) finds Eastern Kingdoms' tiles; the scene's death thud plays on TerrainType 0; ItemClass 0 resolves to "Consumable" in the item name lookups. Instance::Info and the C_Map MapInfo reader had each copied the lookup without the id 0 check to work around it; both now call DBC::Record.