From 9d48599a9082f27b03374b2acf591b63c091ee2d Mon Sep 17 00:00:00 2001 From: David Skoland Date: Mon, 30 Jan 2017 14:23:32 +0100 Subject: [PATCH] fixed a crash related to the BN packet --- courtroom.cpp | 4 +++- packet_distribution.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/courtroom.cpp b/courtroom.cpp index 46c27a1..b7ed86a 100644 --- a/courtroom.cpp +++ b/courtroom.cpp @@ -485,11 +485,13 @@ void Courtroom::handle_chatmessage(QStringList *p_contents) ui_ic_chatlog->verticalScrollBar()->setValue(ui_ic_chatlog->verticalScrollBar()->minimum()); } + + //T0D0: play objection gif->preanimation if there is any //D3BUG START - ui_vp_background->set_image("defenseempty.png"); + //ui_vp_background->set_image("defenseempty.png"); //D3BUG END } diff --git a/packet_distribution.cpp b/packet_distribution.cpp index 6942b7e..44dee2a 100644 --- a/packet_distribution.cpp +++ b/packet_distribution.cpp @@ -284,7 +284,8 @@ void AOApplication::server_packet_received(AOPacket *p_packet) if (f_contents.size() < 1) return; - w_courtroom->set_background(f_contents.at(0)); + if (courtroom_constructed) + w_courtroom->set_background(f_contents.at(0)); } //server accepting char request(CC) packet else if (header == "PV")