Fix a bug where ships without a race icon (like the apotheosis) would make stuff crash
This commit is contained in:
2
eos
2
eos
Submodule eos updated: a5ba6e88b6...193c9473b0
@@ -98,8 +98,8 @@ class MultiSwitch(wx.Notebook):
|
||||
fit = cFit.getFit(fitID)
|
||||
self.SetPageText(tab, "%s: %s" % (fit.ship.item.name, fit.name))
|
||||
bitmap = bitmapLoader.getBitmap("race_%s_small" % fit.ship.item.race, "icons")
|
||||
imageId = self.imageList.Add(bitmap)
|
||||
self.SetPageImage(tab, imageId)
|
||||
if bitmap:
|
||||
self.SetPageImage(tab, self.imageList.Add(bitmap))
|
||||
|
||||
def changeFit(self, event):
|
||||
selected = self.GetSelection()
|
||||
|
||||
Reference in New Issue
Block a user