aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCerapter <43446478+Cerapter@users.noreply.github.com>2018-12-16 23:59:18 +0100
committerGitHub <noreply@github.com>2018-12-16 23:59:18 +0100
commit50af363b735399876fbdd3635e517e83c8dab946 (patch)
tree90baf4745c6fe48656c74c02562410fb9b85c614
parentdef23b10ffd07a1e7b395826f689ec8bc28db81e (diff)
Fixed a bug with area-less servers and `ARUP`.
A server with no areas will no longer crash the client upon joining.
-rw-r--r--courtroom.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/courtroom.h b/courtroom.h
index 0b5c0ea..874b682 100644
--- a/courtroom.h
+++ b/courtroom.h
@@ -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)