From 7a70a834627af16460c9ba15ddd29d3e6f4f92c3 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 23 Apr 2019 17:59:31 -0400 Subject: [PATCH] Avotd crash due to bad array indexing. --- sst.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sst.py b/sst.py index a2cedc5..a990052 100755 --- a/sst.py +++ b/sst.py @@ -2775,7 +2775,8 @@ def nova(nov): finish(FNOVA) return # add in course nova contributes to kicking starship - bump += (game.sector-hits[-1]).sgn() + if hits: + bump += (game.sector-hits[-1]).sgn() elif iquad == 'K': # kill klingon deadkl(neighbor, iquad, neighbor) elif iquad in ('C','S','R'): # Damage/destroy big enemies -- 2.31.1