This commit is contained in:
blitzmann
2015-01-08 15:04:22 -05:00
parent 2a391fa38b
commit 059af217aa
2 changed files with 2 additions and 2 deletions

View File

@@ -125,7 +125,7 @@ class DmgPatternEditorDlg (wx.Dialog):
editObj.Bind(wx.EVT_TEXT, self.ValuesUpdated)
editObj.SetLimited(True)
editObj.SetMin(0)
editObj.SetMax(99999)
editObj.SetMax(2000000)
contentSizer.Add(dmgeditSizer, 1, wx.EXPAND | wx.ALL, 5)
self.slfooter = wx.StaticLine(self)

View File

@@ -742,7 +742,7 @@ class Fit(object):
fit = eos.db.getFit(fitID)
for attr in ("em", "thermal", "kinetic", "explosive"):
setattr(dp, "%sAmount" % attr, ammo.getAttribute("%sDamage" % attr))
setattr(dp, "%sAmount" % attr, ammo.getAttribute("%sDamage" % attr) or 0)
fit.damagePattern = dp
self.recalc(fit)