unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 8cc64785091fef279fed7edcf3f041802c8ae1b7 761 bytes (raw)
name: gnu/packages/patches/kiki-level-selection-crash.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
Downloaded from https://anonscm.debian.org/viewvc/pkg-games/packages/trunk/kiki-the-nano-bot/debian/patches/level-selection-with-no-levels-solved.patch?revision=8291&view=co

Kiki crashes if the user tries to use the level selection menu before
finishing any level.

Peter De Wachter (pdewacht@gmail.com)
placed in the public domain

--- a/py/levelselection.py
+++ b/py/levelselection.py
@@ -25,6 +25,8 @@
     # ............................................................................................................    
     
     last_level = highscore.getLastAvailableLevel()
+    if last_level < 0:
+        last_level = 0
     current_level = (level_index >= 0) and level_index or last_level 
         
     world.max_level_index = last_level

debug log:

solving 8cc647850 ...
found 8cc647850 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).