Quantum324b4fe0
function · ui · primitive
- Address
0x4b4fe0· 57 bytes, up to0x4b5018- Signature
uint32_t __thiscall (void *this, uint32_t count)- Meaning
- Returns the top power of two of a count below 32, 1 for 0; from 32 up stores 32 at this+0xc and returns it
- Confidence
- verified, proof one
- Finding
- ui/reactivespells#reactive-spell-list
Finding: Reactive spell list in ui: reactive spells and the book reset
The reactive list at 0xb71148 holds 8-byte entries {spell id, usable}, one per name among the
learned spells whose record has AttributesEx4 (+0x28) bit 0x200. AddSpellToBook tests the bit for
every learned spell, before its Attributes and CastUI gates. An entry with the same name (SStrCmp
of the locale name, case counted) takes the new id only when ParseSpellRank of the new record is
strictly higher, keeping its usable word; a new name is appended as {id, 0}. Outside AddSpellToBook,
only FireUsableEvents reads its entries (Usable refresh). No code removes an entry: unlearning
(0x4b2c50) leaves it, and the reset (Resetting the book) and the exit callback 0x4b2190 free the
whole list.
The derivation is in the doc.
Callers 1
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.