Starting the game loop

This commit is contained in:
Zoe Roux
2021-05-14 17:46:14 +02:00
parent d6aaf30c3b
commit 2015705f11
3 changed files with 12 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ namespace WAL
Scene &SceneManager::getCurrent()
{
if (this->_scenes.empty())
throw NotFoundError("No scene exists.");
return this->_scenes.front();
}