mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fixed unit info windows crashing when banner not found (variable referenced before assignment error)
This commit is contained in:
parent
f11918fc41
commit
6704cded2d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user