Fixed unit info windows crashing when banner not found (variable referenced before assignment error)

This commit is contained in:
Khopa 2021-02-27 00:10:57 +01:00
parent f11918fc41
commit 6704cded2d

View File

@ -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