From 153acb7f644d755c45533b7c5311e3ffa47e8973 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 05:31:09 -0400 Subject: fix: harden engine across casino, economy, concurrency, security, and content --- internal/game/act.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'internal/game/act.go') diff --git a/internal/game/act.go b/internal/game/act.go index 64d1848..1317df4 100644 --- a/internal/game/act.go +++ b/internal/game/act.go @@ -198,7 +198,10 @@ func (g *Game) AdvanceActions() { if g.Hub == nil { return } - for _, sess := range g.Hub.AllSessions() { + // One session snapshot per tick: the background-action pass below used to + // re-snapshot the whole hub. + sessions := g.Hub.AllSessions() + for _, sess := range sessions { p := sess.Player if p == nil || p.Action == nil { continue @@ -245,7 +248,7 @@ func (g *Game) AdvanceActions() { } } - for _, sess := range g.Hub.AllSessions() { + for _, sess := range sessions { p := sess.Player if p == nil || p.BackgroundAction == nil { continue -- cgit v1.2.3