aboutsummaryrefslogtreecommitdiff
path: root/src/packet_distribution.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2023-01-29 22:11:04 +0100
committerGitHub <noreply@github.com>2023-01-29 22:11:04 +0100
commit50beb7de444e8cd544702e00da945853b9929bed (patch)
tree7eacf19f5860d3d26c918ec7a6956d9c515f2dce /src/packet_distribution.cpp
parent74b02513e36063dabcd8c3b38d18285176406913 (diff)
Fix incorrect judge-button display behaviour(#884)
Co-authored-by: stonedDiscord <Tukz@gmx.de>
Diffstat (limited to 'src/packet_distribution.cpp')
-rw-r--r--src/packet_distribution.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp
index db7d261e..9c05b65f 100644
--- a/src/packet_distribution.cpp
+++ b/src/packet_distribution.cpp
@@ -388,7 +388,9 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
if (f_contents.size() >= 2) {
// We have a pos included in the background packet!
- w_courtroom->set_side(f_contents.at(1));
+ if (!f_contents.at(1).isEmpty())
+ //Not touching it when its empty.
+ w_courtroom->set_side(f_contents.at(1));
}
w_courtroom->set_background(f_contents.at(0), f_contents.size() >= 2);
}