mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Clear level stats vector before loading them into the vector
Otherwise this results in what is basically a memory leak that can be triggered repeatedly by selecting "play a level" over and over again. Fixes #885.
This commit is contained in:
parent
424c8c80be
commit
550dfe676a
1 changed files with 2 additions and 0 deletions
|
@ -483,6 +483,8 @@ void Game::loadcustomlevelstats(void)
|
|||
return;
|
||||
}
|
||||
|
||||
customlevelstats.clear();
|
||||
|
||||
// Old system
|
||||
std::vector<std::string> customlevelnames;
|
||||
std::vector<int> customlevelscores;
|
||||
|
|
Loading…
Reference in a new issue