Skip to content

Commit

Permalink
Fix #246
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed Jan 8, 2015
1 parent 2a391fa commit 059af21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/patternEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(self, parent):
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)
Expand Down
2 changes: 1 addition & 1 deletion service/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ def setAsPattern(self, fitID, ammo):

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)
Expand Down

0 comments on commit 059af21

Please sign in to comment.