From 8fe9e3c3fef0049df82281a62afe35dda516dfe2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 18 Sep 2026 17:48:26 -0400 Subject: fix: close combat ghost, admin traversal, login throttle, journal double-pay, and quality/economy gaps --- internal/game/cmd_quit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/game/cmd_quit.go') diff --git a/internal/game/cmd_quit.go b/internal/game/cmd_quit.go index 249df80..0a8b8ca 100644 --- a/internal/game/cmd_quit.go +++ b/internal/game/cmd_quit.go @@ -97,7 +97,9 @@ func (g *Game) beginQuitCountdown(sess *net.Session) { // Forfeit any committed casino wager and free the seat only // now — immediately before the disconnect. Settling games only // pay seated bettors, so this forfeits a mid-round stake. - g.emitCasinoEvents(g.Casino.MarkDisconnected(p.Name)) + if g.Casino != nil { + g.emitCasinoEvents(g.Casino.MarkDisconnected(p.Name)) + } g.saveCharacter(p) g.charsMu.Lock() delete(g.loggedInChars, p.Name) -- cgit v1.2.3