CGCorpse_C::SetFieldPointers
function · objectlayer · primitive
- Address
0x5d6220· 51 bytes, up to0x5d6252- Signature
void __thiscall (CGCorpse_C *this, uint32_t *fields, uint32_t *copy)- Meaning
- Stores the storage, then points +0x110 at field 6 and +0x114 past the object section's watch copy
- Confidence
- verified, proof one
- Finding
- objectlayer/classes#field-storage
Finding: Field storage in objectlayer: classes
0x613980 stores the field array pointer at +0x8 and the second per-field array at +0xc.
0x6142e0 writes one field by index and returns 1. Neither checks the index. The unit, game
object, dynamic object and corpse storage functions then point +0x110 at field 6, their own
section, and +0x114 at their section's watch copy, past the object's 3; the player's runs the
unit's and points +0xe68 at field 188 and +0xe6c past the unit's 170 watched fields. Code of
these classes reads its own fields through these pointers: [[unit+0x110]+4·k] is field 6 + k.
The derivation is in the doc.
Callers 1
- ObjectClearFields objectlayer
Callees 2
- ObjectWatchedCount objectlayer
- CGObject_C::SetStorage objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.