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 6126fb7..d0da61f 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -2185,9 +2185,9 @@ static void bubbles_loadscores(struct game_context* bb) {
for (i = 0; i < NUM_SCORES; i++)
{
- if (highscores[i].level >= highlevel)
+ if (highscores[i].level > highlevel)
{
- highlevel = highscores[i].level+1;
+ highlevel = highscores[i].level;
}
}
@@ -2392,7 +2392,7 @@ static int bubbles(struct game_context* bb) {
case 2: /* choose level */
startlevel++;
rb->set_int("Choose start level", "", UNIT_INT, &startlevel,
- NULL, 1, 1, bb->highlevel+1, NULL);
+ NULL, 1, 1, MAX(NUM_LEVELS,bb->highlevel+1), NULL);
startlevel--;
break;
case 3: /* High scores */