mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #4215: Multiplayer, default group does not work correctly with group IDs
This commit is contained in:
parent
0fbdcbe62d
commit
c967114463
|
@ -886,7 +886,7 @@ void Network::LoadGroups()
|
|||
}
|
||||
json_t * jsonDefaultGroup = json_object_get(json, "default_group");
|
||||
default_group = (uint8)json_integer_value(jsonDefaultGroup);
|
||||
if (default_group >= group_list.size()) {
|
||||
if (GetGroupByID(default_group) == nullptr) {
|
||||
default_group = 0;
|
||||
}
|
||||
json_decref(json);
|
||||
|
|
Loading…
Reference in New Issue