From e67d6d49c3a6d49cd4031b91e3855779ec0ac9ba Mon Sep 17 00:00:00 2001 From: Fussmatte Date: Wed, 3 Jun 2020 14:14:58 -0400 Subject: [PATCH] Fixed a few vector initialisation errors --- desktop_version/src/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index e27f71fa..5946ad3a 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -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;