1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 19:04:52 +09:00

Fix typo which caused infinite loop

This commit is contained in:
fr33domlover 2016-02-05 23:41:55 +00:00
parent aa351c00d2
commit 547db845be

View file

@ -304,8 +304,9 @@ createUser user = do
vstate <- get
let users = vsUsers vstate
next = vsNextUser vstate
users' = M.insert next user users'
put vstate { vsUsers = users', vsNextUser = UserID $ unUserID next + 1 }
users' = M.insert next user users
next' = UserID $ unUserID next + 1
put vstate { vsUsers = users', vsNextUser = next' }
saveState
-------------------------------------------------------------------------------