projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a404eb6
)
fix array index overrun
author
Stas P
<stas@stas.(none)>
Tue, 14 Dec 2010 15:11:00 +0000
(18:11 +0300)
committer
Stas P
<stas@stas.(none)>
Tue, 14 Dec 2010 15:11:00 +0000
(18:11 +0300)
sst.py
patch
|
blob
|
history
diff --git
a/sst.py
b/sst.py
index 94f8103e95e93979e3fc3f4e2f8a861c44427ff2..4b3fdfa8a44aadc33df2243abc2cfc38b201da06 100755
(executable)
--- a/
sst.py
+++ b/
sst.py
@@
-2692,11
+2692,9
@@
def kaboom():
skip(1)
if len(game.enemies) != 0:
whammo = 25.0 * game.energy
- l=1
- while l <= len(game.enemies):
+ for l in range(len(game.enemies)):
if game.enemies[l].power*game.enemies[l].kdist <= whammo:
deadkl(game.enemies[l].location, game.quad[game.enemies[l].location.i][game.enemies[l].location.j], game.enemies[l].location)
- l += 1
finish(FDILITHIUM)
def killrate():