diff options
| author | Cerapter <cerap@protonmail.com> | 2018-10-23 11:49:31 +0200 |
|---|---|---|
| committer | Cerapter <cerap@protonmail.com> | 2018-10-23 11:49:31 +0200 |
| commit | 3844827724f5a65fff87ce861700471283317e47 (patch) | |
| tree | dbe232ede49b3b62c0a6f41bf85c565db5fdfb49 /courtroom.h | |
| parent | bbf8d103b31d5bddc277b28c0245c2ab3e399fe6 (diff) | |
Fixed a bug regarding ARUP that caused crashes.
Diffstat (limited to 'courtroom.h')
| -rw-r--r-- | courtroom.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/courtroom.h b/courtroom.h index 1ee09cd9..46a23d8f 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(); } |
