mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The quest's objective count — the length GetQuestDetails(questID) .requirements would have — read straight from the cache block with no Lua tables or strings materialized. nil when the quest isn't cached (same contract as GetQuestDetails). Exists because materializing full detail tables in a login-path loop is expensive at warm cache: GetQuestDetails copies description / objectives / completion text into Lua strings (~5 KB per quest). TurtleGuide's guide-load OIDX validation did exactly that for every tagged step — fine on the first (cold-cache) session, but once the quest cache was warm from questcache.wdb every subsequent login exhausted vanilla's fixed Lua memory pool and crashed the client in lmemPool.cpp:53. With this accessor the same validation costs a few dozen byte reads regardless of cache temperature.