aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapgen.cpp')
-rw-r--r--src/mapgen.cpp2
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;