QR2: Fix nil group.players after reload

This commit is contained in:
mkwcat
2024-05-10 21:40:42 -04:00
parent 97f4c74bd5
commit 23549b9f42

View File

@@ -699,11 +699,19 @@ func loadGroups() error {
continue
}
if group.players == nil {
group.players = map[*Session]bool{}
}
group.players[session] = true
session.groupPointer = group
}
for _, group := range groups {
if group.players == nil {
group.players = map[*Session]bool{}
}
group.findNewServer()
}