From 6704cded2d466d7a4a538a9e709e29738212fad9 Mon Sep 17 00:00:00 2001 From: Khopa Date: Sat, 27 Feb 2021 00:10:57 +0100 Subject: [PATCH] Fixed unit info windows crashing when banner not found (variable referenced before assignment error) --- qt_ui/windows/QUnitInfoWindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt_ui/windows/QUnitInfoWindow.py b/qt_ui/windows/QUnitInfoWindow.py index 541f208b..1b40c077 100644 --- a/qt_ui/windows/QUnitInfoWindow.py +++ b/qt_ui/windows/QUnitInfoWindow.py @@ -48,6 +48,8 @@ class QUnitInfoWindow(QDialog): header = QLabel(self) header.setGeometry(0, 0, 720, 360) + pixmap = None + if ( dcs.planes.plane_map.get(self.unit_type.id) is not None or dcs.helicopters.helicopter_map.get(self.unit_type.id) is not None