Permalink
Browse files

Fix crash caused by Lua error during startup (#7473)

  • Loading branch information...
red-001 authored and SmallJoker committed Jun 22, 2018
1 parent c66d977 commit 07b1743d3db086f0f984968252d9e3ac71336a7e
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/emerge.cpp
@@ -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;

0 comments on commit 07b1743

Please sign in to comment.