Skip to content

Commit

Permalink
Fix crash caused by Lua error during startup (#7473)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-001 authored and SmallJoker committed Jun 22, 2018
1 parent c66d977 commit 07b1743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/emerge.cpp
Expand Up @@ -169,7 +169,10 @@ EmergeManager::~EmergeManager()
}

delete thread;
delete m_mapgens[i];

// Mapgen init might not be finished if there is an error during startup.
if (m_mapgens.size() > i)
delete m_mapgens[i];
}

delete biomemgr;
Expand Down

0 comments on commit 07b1743

Please sign in to comment.