TRECISION: Fix loading from the launcher

This commit is contained in:
Filippos Karapetis 2021-05-20 15:58:14 +03:00 committed by SupSuper
parent 3db90c3546
commit e49abd0f0c

View File

@ -217,10 +217,6 @@ Common::Error TrecisionEngine::run() {
initMain();
// Check if a saved game is to be loaded from the launcher
if (ConfMan.hasKey("save_slot"))
loadGameState(ConfMan.getInt("save_slot"));
while (!shouldQuit()) {
eventLoop();
if (!_flagNoPaintScreen)
@ -317,6 +313,10 @@ void TrecisionEngine::initMain() {
loadAll();
processTime();
// Check if a saved game is to be loaded from the launcher
if (ConfMan.hasKey("save_slot"))
loadGameState(ConfMan.getInt("save_slot"));
_scheduler->changeRoom(_curRoom, 0, 0, _curObj);
}