From 50af363b735399876fbdd3635e517e83c8dab946 Mon Sep 17 00:00:00 2001 From: Cerapter <43446478+Cerapter@users.noreply.github.com> Date: Sun, 16 Dec 2018 23:59:18 +0100 Subject: [PATCH] Fixed a bug with area-less servers and `ARUP`. A server with no areas will no longer crash the client upon joining. --- courtroom.h | 3 +++ 1 file changed, 3 insertions(+) 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)