From 3844827724f5a65fff87ce861700471283317e47 Mon Sep 17 00:00:00 2001 From: Cerapter Date: Tue, 23 Oct 2018 11:49:31 +0200 Subject: [PATCH] Fixed a bug regarding ARUP that caused crashes. --- courtroom.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/courtroom.h b/courtroom.h index 1ee09cd..46a23d8 100644 --- a/courtroom.h +++ b/courtroom.h @@ -77,19 +77,23 @@ public: { if (type == 0) { - arup_players[place] = value.toInt(); + if (arup_players.size() > place) + arup_players[place] = value.toInt(); } else if (type == 1) { - arup_statuses[place] = value; + if (arup_statuses.size() > place) + arup_statuses[place] = value; } else if (type == 2) { - arup_cms[place] = value; + if (arup_cms.size() > place) + arup_cms[place] = value; } else if (type == 3) { - arup_locks[place] = value; + if (arup_locks.size() > place) + arup_locks[place] = value; } list_areas(); }