diff --git a/oscar64/Parser.cpp b/oscar64/Parser.cpp index 541745e..3ee00ea 100644 --- a/oscar64/Parser.cpp +++ b/oscar64/Parser.cpp @@ -305,10 +305,10 @@ Declaration* Parser::ParseBaseTypeDeclaration(uint32 flags) mErrors->Error(mScanner->mLocation, EERR_CONSTANT_TYPE, "Integer constant expected"); } cdec->mInteger = nitem++; - if (dec->mInteger < minValue) - minValue = dec->mInteger; - else if (dec->mInteger > maxValue) - maxValue = dec->mInteger; + if (cdec->mInteger < minValue) + minValue = cdec->mInteger; + else if (cdec->mInteger > maxValue) + maxValue = cdec->mInteger; if (mScanner->mToken == TK_COMMA) mScanner->NextToken(); diff --git a/samples/games/maze3d.c b/samples/games/maze3d.c index 2afe5c5..808cfdb 100644 --- a/samples/games/maze3d.c +++ b/samples/games/maze3d.c @@ -23,7 +23,7 @@ static const char * maze[16] = "#.#####.#....#.#", "#.......######.#", "#.##.####......#", - "#.#..##....###.#", + "#.#..##...####.#", "#.##....#....#.#", "#.#####.######.#", "#..............#",