benilla-re systems structs docs

RemovePlayerTypeWatchers

function · objectlayer · primitive

Address
0x5e2e60 · 430 bytes, up to 0x5e300d
Signature
void __cdecl (void)
Meaning
Frees the player tables and removes the type watchers, missing the 14 visible-item ones by an offset of 8
Confidence
verified, proof one
Finding
objectlayer/playerfields#visible-item-watcher-removal

Finding: Visible-item watcher removal in objectlayer: player fields

0x5e2e60 removes the type watchers at world exit, but its visible-item loop starts at +0x120 instead of +0x118, so it names fields no watcher is on and removes none of the 14. The miss has no effect: ClientDestroyGame calls 0x5e2e60 at 0x401fd5 and then ClntObjMgrReleaseWatchers at 0x402043, which frees every watcher on the 0x502 lists of all eight sections, the 14 among them. In the world each is registered once, by 0x5e2510 from ClientInitializeGame at 0x401648, its one caller.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.