Skip to content

Commit

Permalink
fix(server/player): do not attempt to save when quitting from charselect
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 11, 2022
1 parent 2ea0340 commit 302bb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/classes/player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ setmetatable(player, {
end,

__sub = function(self, obj)
obj:save(true)
if obj.charid then obj:save(true) end

self.list[obj.source] = nil
self.count -= 1
end,
Expand Down

0 comments on commit 302bb40

Please sign in to comment.