diff --git a/ReflexToQ3/includes/v8mapparser.cpp b/ReflexToQ3/includes/v8mapparser.cpp index 286be89..2fe0bd9 100644 --- a/ReflexToQ3/includes/v8mapparser.cpp +++ b/ReflexToQ3/includes/v8mapparser.cpp @@ -20,6 +20,8 @@ const bool V8MapParser::LoadMap(const char* _kpcFileName) { if(!std::getline(InFile, Line)) { bGoing = false; + // without this break, loop control allows the final empty string to get passed into ParseFunctions() + break; } } bAdvance = true;