mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Fixed a few vector initialisation errors
This commit is contained in:
parent
aaa25c7b47
commit
e67d6d49c3
1 changed files with 6 additions and 3 deletions
|
@ -260,17 +260,20 @@ int main(int argc, char *argv[])
|
|||
game.levelpage = 0;
|
||||
game.playcustomlevel = 0;
|
||||
|
||||
ed.directoryList = { playtestname };
|
||||
ed.directoryList.clear();
|
||||
ed.directoryList.push_back(playtestname);
|
||||
|
||||
LevelMetaData meta;
|
||||
if (ed.getLevelMetaData(playtestname, meta)) {
|
||||
ed.ListOfMetaData = { meta };
|
||||
ed.ListOfMetaData.clear();
|
||||
ed.ListOfMetaData.push_back(meta);
|
||||
} else {
|
||||
ed.loadZips();
|
||||
|
||||
ed.directoryList = { playtestname };
|
||||
if (ed.getLevelMetaData(playtestname, meta)) {
|
||||
ed.ListOfMetaData = { meta };
|
||||
ed.ListOfMetaData.clear();
|
||||
ed.ListOfMetaData.push_back(meta);
|
||||
} else {
|
||||
printf("Level not found\n");
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue