From d995b858aae5072728787552428ba423a3755c27 Mon Sep 17 00:00:00 2001 From: suhrke Date: Thu, 20 Apr 2017 13:02:56 -0700 Subject: [PATCH] Parser control logic fixed, closes issue #8 --- ReflexToQ3/includes/v8mapparser.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;