diff options
Diffstat (limited to 'packet_distribution.cpp')
| -rw-r--r-- | packet_distribution.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packet_distribution.cpp b/packet_distribution.cpp index 19ae7bb..f98417d 100644 --- a/packet_distribution.cpp +++ b/packet_distribution.cpp @@ -490,7 +490,13 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (f_contents.size() < 1) goto end; if (courtroom_constructed) - w_courtroom->handle_wtce(f_contents.at(0)); + { + if (f_contents.size() == 1) + w_courtroom->handle_wtce(f_contents.at(0), 0); + else if (f_contents.size() == 2) { + w_courtroom->handle_wtce(f_contents.at(0), f_contents.at(1).toInt()); + } + } } else if (header == "HP") { |
