diff options
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r-- | src/mapgen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp index 1d3b5869b..60fa842a6 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -348,7 +348,7 @@ GenElement *GenElementManager::getByName(std::string &name) GenElement *GenElementManager::update(u32 id, GenElement *elem) { if (id >= m_elements.size()) - return false; + return NULL; GenElement *old_elem = m_elements[id]; m_elements[id] = elem; |