diff options
author | kwolekr <kwolekr@minetest.net> | 2015-01-04 22:39:57 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-01-04 22:39:57 -0500 |
commit | 091594e26e69cb41fb8aec8e47e3d147176ef655 (patch) | |
tree | 8f1ecd679342a4fd2b9fa3e1fa5fb89df3a3e81c | |
parent | bdcf03ae36553f4c7ba48d18ef8d67f05590dd60 (diff) | |
download | minetest-091594e26e69cb41fb8aec8e47e3d147176ef655.tar.gz minetest-091594e26e69cb41fb8aec8e47e3d147176ef655.tar.bz2 minetest-091594e26e69cb41fb8aec8e47e3d147176ef655.zip |
NodeDef: Clear NodeResolver related entries too in clear()
-rw-r--r-- | src/nodedef.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 686b71604..bcf51a072 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -478,6 +478,14 @@ void CNodeDefManager::clear() m_group_to_items.clear(); m_next_id = 0; + m_node_registration_complete = false; + for (std::list<NodeResolveInfo *>::iterator + it = m_pending_node_lookups.begin(); + it != m_pending_node_lookups.end(); + ++it) + delete *it; + m_pending_node_lookups.clear(); + u32 initial_length = 0; initial_length = MYMAX(initial_length, CONTENT_UNKNOWN + 1); initial_length = MYMAX(initial_length, CONTENT_AIR + 1); |