mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
MAX_RESERVED was 64 while the codebase carries 65 AutoReserve instantiations: 60 at file scope plus the 5 lazy function-local ones in voicechat/Tts.cpp, which construct on first registration and only when VanillaTTS is absent. The constructor silently returns once g_reservedCount hits the cap, and the file-scope 60 all run at static init, so the TTS five land last and the 65th -- VOICE_CHAT_TTS_VOICES_UPDATE -- was dropped: Slot() stayed -1 and Fire() no-opped, so the event never fired on any client without VanillaTTS. Bump to 96 and record the incident; the comment's "~40 reservations" figure was stale from the previous overflow at 32.