CGObject_C::SetStorage
function · objectlayer · orchestration
- Address
0x613980· 19 bytes, up to0x613992- Signature
void __thiscall (CGObject_C *this, uint32_t *fields, uint32_t *copy)- Meaning
- Stores the field array pointer at +0x8 and the watch copy pointer at +0xc
- 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 6
- ObjectClearFields objectlayer
- CGDynamicObject_C::SetFieldPointers objectlayer
- CGCorpse_C::SetFieldPointers objectlayer
- CGItem_C::SetFieldPointers objectlayer
- CGGameObject_C::SetFieldPointers objectlayer
- CGUnit_C::SetFieldPointers objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.