diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index cb0894e..409c86e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,12 +84,12 @@ int main(void) { next += game->getNext(); saveOut << game->getCurrent(); - delete game; CloseAudioDevice(); - std::cout << "next level " << next << std::endl; if (game->getNext() != "0") { + delete game; game = new Game(next); gs = GAMEPLAY; + std::cout << "next level " << next << std::endl; } } break; |