diff options
| author | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
| commit | 153acb7f644d755c45533b7c5311e3ffa47e8973 (patch) | |
| tree | 7645e6f7b65bc3830b078e3b9336d2e6b199d584 /internal/game/act_burn.go | |
| parent | 87d08f0151e643951769e323995f1c5ed89ee200 (diff) | |
| download | thehouseoficarus-153acb7f644d755c45533b7c5311e3ffa47e8973.tar.gz | |
fix: harden engine across casino, economy, concurrency, security, and content
Diffstat (limited to 'internal/game/act_burn.go')
| -rw-r--r-- | internal/game/act_burn.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/game/act_burn.go b/internal/game/act_burn.go index 2d03ac4..84f7f14 100644 --- a/internal/game/act_burn.go +++ b/internal/game/act_burn.go @@ -417,6 +417,12 @@ func (g *Game) broadcastDrop(p *player.Player, itemID, itemName string) { } func (g *Game) FireTick() { + // Mandatory tick-system guard: the master per-tick subscriber can fire + // before SetHub during startup, and burning out a fire reaches + // cancelStokers -> g.Hub.PlayersInRoom. See building_guide/tick_order.md. + if g.Hub == nil { + return + } for _, st := range g.World.AllFireStates() { st.Quality-- if st.Quality <= 0 { |
