mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-26 02:07:26 +00:00
Clear recent save slot when entering the title screen or starting a mod.
This fixes a bug where loading a normal saved game and then dying in a mod (or vice versa) would cause the game to attempt loading the save game in the wrong context, resulting in a blank error map and many "tile dummy" error messages.
This commit is contained in:
parent
2d7eeb4781
commit
b26eac658a
2 changed files with 3 additions and 1 deletions
|
@ -2930,6 +2930,7 @@ void DSQ::createSaveSlots(SaveSlotMode ssm)
|
|||
void DSQ::title(bool fade)
|
||||
{
|
||||
core->settings.runInBackground = false;
|
||||
recentSaveSlot = -1;
|
||||
|
||||
dsq->overlay->color = 0;
|
||||
dsq->overlay->alpha.interpolateTo(1, 1);
|
||||
|
|
|
@ -184,7 +184,8 @@ void Mod::start()
|
|||
|
||||
core->sound->stopMusic();
|
||||
|
||||
enqueueModStart = 1;
|
||||
enqueueModStart = 1;
|
||||
dsq->recentSaveSlot = -1;
|
||||
}
|
||||
|
||||
void Mod::applyStart()
|
||||
|
|
Loading…
Reference in a new issue