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:
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.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;
|
||||||
|
|
Loading…
Reference in a new issue