Commit 9fb1e1fe authored by Wolfram Sang's avatar Wolfram Sang Committed by Bruno Coudoin

Fix an off-by-one bug in the calculation of the amount of levels, which made it

possible to see the end-sequence just by clicking the dice.

Conflicts:

	src/boards/shapegame.c
parent 46c8e1da
......@@ -247,9 +247,10 @@ 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);
}
g_free(filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment