summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r--apps/plugins/bubbles.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 6126fb7fdd..d0da61f446 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -2185,9 +2185,9 @@ static void bubbles_loadscores(struct game_context* bb) {
2185 2185
2186 for (i = 0; i < NUM_SCORES; i++) 2186 for (i = 0; i < NUM_SCORES; i++)
2187 { 2187 {
2188 if (highscores[i].level >= highlevel) 2188 if (highscores[i].level > highlevel)
2189 { 2189 {
2190 highlevel = highscores[i].level+1; 2190 highlevel = highscores[i].level;
2191 } 2191 }
2192 } 2192 }
2193 2193
@@ -2392,7 +2392,7 @@ static int bubbles(struct game_context* bb) {
2392 case 2: /* choose level */ 2392 case 2: /* choose level */
2393 startlevel++; 2393 startlevel++;
2394 rb->set_int("Choose start level", "", UNIT_INT, &startlevel, 2394 rb->set_int("Choose start level", "", UNIT_INT, &startlevel,
2395 NULL, 1, 1, bb->highlevel+1, NULL); 2395 NULL, 1, 1, MAX(NUM_LEVELS,bb->highlevel+1), NULL);
2396 startlevel--; 2396 startlevel--;
2397 break; 2397 break;
2398 case 3: /* High scores */ 2398 case 3: /* High scores */