1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-01 00:39:41 +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.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;