s_mapOverlayCount
global · ui
- Address
0xb6e6b4· 4 bytes, up to0xb6e6b7- Type
uint32_t- Meaning
- Holds the number of overlays GetNumMapOverlays returns
- Confidence
- verified, proof one
- Finding
- ui/worldmap#the-overlays
Finding: The overlays in ui: the world map
GetNumMapOverlays() pushes 0xb6e6b4 and GetMapOverlayInfo(index) is 1-based and pushes seven values: the texture path, the texture width and height, the two offsets and the two map point coordinates. An index out of range looks up overlay row 0 and, with no such row, pushes nil and six zeros. The list is rebuilt by 0x4a67a0 as row ids of WorldMapOverlay (0x44 bytes each). It stays empty with no player, and for a continent or world view: only a zone (zone 0 or more) or a direct area above 0 shows overlays.
The derivation is in the doc.