aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_quit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/cmd_quit.go')
-rw-r--r--internal/game/cmd_quit.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/game/cmd_quit.go b/internal/game/cmd_quit.go
index 60b1495..12d3879 100644
--- a/internal/game/cmd_quit.go
+++ b/internal/game/cmd_quit.go
@@ -33,6 +33,7 @@ func (g *Game) doQuit(sess *net.Session) {
sess.WriteLine("You close your eyes...")
case 0:
g.cancelRest(p.Name)
+ g.restoreGodPlayer(p)
g.AccountStore.SaveCharacter(p)
g.charsMu.Lock()
delete(g.loggedInChars, p.Name)