diff --git a/FiestaCraftingCalculator/FiestaCraftingCalculator.cpp b/FiestaCraftingCalculator/FiestaCraftingCalculator.cpp index 77b49b0..cfd67e9 100644 --- a/FiestaCraftingCalculator/FiestaCraftingCalculator.cpp +++ b/FiestaCraftingCalculator/FiestaCraftingCalculator.cpp @@ -304,8 +304,6 @@ public: { // Called once at the start, so create things here std::ifstream file=std::ifstream("assets/Produce.txt"); - std::string fileContents=slurp(file); - fileContents+='\n';//HACK ALERT! Our parser does not deal with data until a '\n' character occurs. If the file has no \n on the last line, we won't process it. This hack fixes that. std::string column=""; std::vectordata; //HACK ALERT! If the number of recipes for any of these exceeds 300, a reallocation occurs and all pointers move... @@ -315,118 +313,119 @@ public: ScrollProdRecipes.reserve(300); CompRecipes.reserve(300); DecompRecipes.reserve(300); - for(int i=0;i