fix(leaks): effects_live_into / effects_live_count and hints_rail_into - a HUD's read-outs into lists it keeps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 01:21:53 +03:00
parent 6c663cc87b
commit 7a637967fe
5 changed files with 33 additions and 3 deletions

View file

@ -0,0 +1,7 @@
# rail_into.ludic - the rail into a list the caller keeps: a HUD asks every frame, and a list made
# each time is never given back
export function hints_rail_into(hints_st: HintsState, out: []int) -> void {
List.clear(out)
if not HintsWorld.showing() { return }
for k in 0 .. hints_st.hn_n { push(out, hints_st.hn_top[k]) }
}