1
0
Fork 0
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:
Fussmatte 2020-06-03 14:14:58 -04:00 committed by Ethan Lee
parent aaa25c7b47
commit e67d6d49c3

View file

@ -260,17 +260,20 @@ int main(int argc, char *argv[])
game.levelpage = 0; game.levelpage = 0;
game.playcustomlevel = 0; game.playcustomlevel = 0;
ed.directoryList = { playtestname }; ed.directoryList.clear();
ed.directoryList.push_back(playtestname);
LevelMetaData meta; LevelMetaData meta;
if (ed.getLevelMetaData(playtestname, meta)) { if (ed.getLevelMetaData(playtestname, meta)) {
ed.ListOfMetaData = { meta }; ed.ListOfMetaData.clear();
ed.ListOfMetaData.push_back(meta);
} else { } else {
ed.loadZips(); ed.loadZips();
ed.directoryList = { playtestname }; ed.directoryList = { playtestname };
if (ed.getLevelMetaData(playtestname, meta)) { if (ed.getLevelMetaData(playtestname, meta)) {
ed.ListOfMetaData = { meta }; ed.ListOfMetaData.clear();
ed.ListOfMetaData.push_back(meta);
} else { } else {
printf("Level not found\n"); printf("Level not found\n");
return 1; return 1;