1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Fix custom assets being unmounted in scriptclass::hardreset()

This resulted in two bugs:
 1. Custom assets would not be unmounted when quitting to the menu.
 2. Custom assets would be unmounted when playtesting a level.

The solution is to unmount assets in Game::quittomenu() instead.
This commit is contained in:
Misa 2020-06-03 17:49:48 -07:00 committed by Ethan Lee
parent b7a2cc1c22
commit c561cd9740
2 changed files with 1 additions and 3 deletions

View file

@ -7385,6 +7385,7 @@ void Game::quittomenu()
createmenu(Menu::mainmenu);
}
script.hardreset();
FILESYSTEM_unmountassets();
}
void Game::returntolab()

View file

@ -6,8 +6,6 @@
#include "KeyPoll.h"
#include "Map.h"
#include "FileSystemUtils.h"
scriptclass::scriptclass()
{
//Start SDL
@ -2508,7 +2506,6 @@ void scriptclass::resetgametomenu()
void scriptclass::startgamemode( int t )
{
FILESYSTEM_unmountassets();
switch(t)
{
case 0: //Normal new game