mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #1228 from timakro/pr_fix_automapper_crash_no_section
Fix automapper crash without [section] line
This commit is contained in:
commit
3277caaac1
|
@ -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