Skip to content

Commit a5bfd43

Browse files
committed
commenting a minor inconsistency found in unit tests
1 parent 3380a2e commit a5bfd43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sc2reader/engine/plugins/creeptracker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,12 @@ def handleEndGame(self, event, replay):
7777
if player.play_race[0] == 'Z':
7878
self.creepTracker.reduce_cgu_per_minute(player.pid)
7979
player.creep_spread_by_minute = self.creepTracker.get_creep_spread_area(player.pid)
80+
# note that player.max_creep_spread may be a tuple or an int
8081
if player.creep_spread_by_minute:
8182
player.max_creep_spread = max(player.creep_spread_by_minute.items(),key=lambda x:x[1])
8283
else:
8384
## Else statement is for players with no creep spread(ie: not Zerg)
84-
player.max_creep_spread =0
85+
player.max_creep_spread = 0
8586
except Exception as e:
8687
print("Whoa! {}".format(e))
8788
pass

0 commit comments

Comments
 (0)