vivasmaq / endgame-singularity

Automatically exported from code.google.com/p/endgame-singularity
0 stars 0 forks source link

Game crashes when destroying non-existant machines #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start new game
2. open location
3. press "destroy"

instead of displaying an error message, the game crashes with this message:

Traceback (most recent call last):
  File "singularity.py", line 157, in <module>
    game_action = map_screen.map_loop()
  File "/usr/share/games/singularity/code/map_screen.py", line 747, in map_loop
    display_base_list(button.button_id, menu_buttons)
  File "/usr/share/games/singularity/code/map_screen.py", line 861, in
display_base_list
    tmp = display_base_list_inner(location)
  File "/usr/share/games/singularity/code/map_screen.py", line 1024, in
display_base_list_inner
    if g.bases[location][base_pos].built == 0:
IndexError: list index out of range

$ uname -a
Linux miles 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 i686
GNU/Linux

$ python -V
Python 2.5.2

$ dpkg -l | grep singularity
ii  singularity  0.26a+r409-5

Original issue reported on code.google.com by waas...@googlemail.com on 7 Jun 2008 at 5:44

GoogleCodeExporter commented 9 years ago
This appears to have been fixed by 0.27, and the feature was not in our release 
of
0.26a.  Bug your distro about a package for 0.27 or (better yet) 0.28.

Original comment by funnyman3595 on 13 Jun 2008 at 8:05