Fix automapper crash without [section] line

This commit is contained in:
Tim Schumacher 2018-07-26 01:21:20 +02:00
parent 0336b662c5
commit 1e3b8c7db5
No known key found for this signature in database
GPG key ID: A3D69E3DA9A0FF34

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;