fix(ludic.npc): a name picked and a name let go build nothing - the body's names counted in place, the last eight who left in a ring made with the state

ludic deps --allocs (25.2) found npc_pick_name making a list of the body's names at every spawn and
np_left making a new list of the recent names at every retire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 15:53:27 +03:00
parent dec64e8a59
commit 58f0dbbc84
3 changed files with 31 additions and 13 deletions

View file

@ -85,7 +85,7 @@ export function npc_reset(npc_st: mut NpcState) -> void {
npc_st.np_n = 0
npc_st.np_next_h = 0.0
npc_st.np_hold = false
npc_st.np_recent = new []string
np_recent_clear(npc_st)
q_clear(npc_facts(npc_st))
}