diff options
| author | historia <[not public]> | 2026-09-18 17:48:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 17:48:26 -0400 |
| commit | 8fe9e3c3fef0049df82281a62afe35dda516dfe2 (patch) | |
| tree | dd269f2c0710f334e19f00a191260ebc46284a90 /internal/game/cmd_quit.go | |
| parent | 194164a77eb4f2479b94c19e6f0e1278ab608781 (diff) | |
| download | thehouseoficarus-8fe9e3c3fef0049df82281a62afe35dda516dfe2.tar.gz | |
fix: close combat ghost, admin traversal, login throttle, journal double-pay, and quality/economy gaps
Diffstat (limited to 'internal/game/cmd_quit.go')
| -rw-r--r-- | internal/game/cmd_quit.go | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
