diff options
-rw-r--r-- | src/boards/shapegame.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/boards/shapegame.c b/src/boards/shapegame.c index 3f62f2c..b2dc781 100644 --- a/src/boards/shapegame.c +++ b/src/boards/shapegame.c @@ -262,14 +262,12 @@ static void start_board (GcomprisBoard *agcomprisBoard) /**/ while( (filename = gc_file_find_absolute("%s/board%d_0.xml", gcomprisBoard->boarddir, - gcomprisBoard->maxlevel++, + gcomprisBoard->maxlevel, NULL)) ) { + gcomprisBoard->maxlevel++; g_free(filename); - } - - /**/ gcomprisBoard->maxlevel--; gc_bar_set(GC_BAR_CONFIG|GC_BAR_LEVEL); |