Skip to content

Commit

Permalink
Merge pull request #263 from OISumeko/master
Browse files Browse the repository at this point in the history
Fix for #261
  • Loading branch information
blitzmann committed Feb 23, 2015
2 parents a31769b + e082077 commit bb96ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eos/saveddata/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def __generateDrain(self):
capAdded = 0
for mod in self.modules:
if mod.state >= State.ACTIVE:
if mod.getModifiedItemAttr("capacitorNeed") != 0:
if (mod.getModifiedItemAttr("capacitorNeed") or 0) != 0:
cycleTime = mod.rawCycleTime or 0
reactivationTime = mod.getModifiedItemAttr("moduleReactivationDelay") or 0
fullCycleTime = cycleTime + reactivationTime
Expand Down

0 comments on commit bb96ecb

Please sign in to comment.