Fixed crash - parser properly transitions through states

This commit is contained in:
2017-04-06 06:00:44 -07:00
parent 4f13310893
commit 4f2aec99e2

View File

@ -126,6 +126,7 @@ EParserState CMapParser::ParseEntity(const std::string _Line)
pcToken = strtok_s(pcLine, kpcDelim, &pcContext); pcToken = strtok_s(pcLine, kpcDelim, &pcContext);
if (_Line.find("\tbrush") != string::npos) { if (_Line.find("\tbrush") != string::npos) {
m_WorldSpawn.m_Brushes.push_back(TBrush());
return PARSERSTATE_BRUSH; return PARSERSTATE_BRUSH;
} }
while(pcToken != nullptr) while(pcToken != nullptr)