Fixed a bug with area-less servers and ARUP.

A server with no areas will no longer crash the client upon joining.
This commit is contained in:
Cerapter 2018-12-16 23:59:18 +01:00 committed by GitHub
parent def23b10ff
commit 50af363b73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,9 +66,12 @@ public:
void fix_last_area()
{
if (area_list.size() > 0)
{
QString malplaced = area_list.last();
area_list.removeLast();
append_music(malplaced);
}
}
void arup_append(int players, QString status, QString cm, QString locked)