CGObject_C::SetUpdateField
function · objectlayer · orchestration
- Address
0x6142e0· 24 bytes, up to0x6142f7- Signature
uint32_t __thiscall (CGObject_C *this, uint32_t index, uint32_t value)- Meaning
- Stores a value in field index of the field array, unchecked, and returns 1
- 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 3
- ObjectSetField objectlayer
- 0x5d6680 objectlayer
- ItemSetField objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.