Merge pull request #1228 from timakro/pr_fix_automapper_crash_no_section

Fix automapper crash without [section] line
This commit is contained in:
Dennis Felsing 2018-07-26 08:30:17 +02:00 committed by GitHub
commit 3277caaac1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ void CAutoMapper::Load(const char* pTileName)
int RunID = pCurrentConf->m_aRuns.add(NewRun);
pCurrentRun = &pCurrentConf->m_aRuns[RunID];
}
else if(!str_comp_num(pLine, "Index", 5))
else if(!str_comp_num(pLine, "Index", 5) && pCurrentRun)
{
// new index
int ID = 0;