CompareBuybackTimestamps
function · ui · primitive
- Address
0x4fb0c0· 47 bytes, up to0x4fb0ee- Signature
int __cdecl (const uint32_t *a, const uint32_t *b)- Meaning
- Compares two buy-back entries by their first dword, the timestamp, ascending
- Confidence
- verified, proof one
- Finding
- ui/merchant#buy-back-list
Finding: Buy-back list in ui: buy-back, shopping tooltips and repair
The buy-back list is a cache rebuilt by 0x4fafd0. It scans the player's inventory slots 69 to 80 and keeps each slot
whose GUID is set and whose entry in the 12 buy-back prices (descriptor bytes 0x1038 on) is nonzero. The kept
slots are sorted by the matching entry of the 12 timestamps (bytes 0x1068 on), the lowest first, and stored as
absolute slot numbers in 0xbddf24, with their count in 0xbddfac. The open vendor's GUID is 0xbddfa0. The
prices and timestamps are player fields; the item itself is the inventory slot's.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.