mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix automapper crash without [section] line
This commit is contained in:
parent
0336b662c5
commit
1e3b8c7db5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue