]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapblock.cpp
Prevent world creation if the world already exists
[dragonfireclient.git] / src / mapblock.cpp
index b2da768f541b14dfc38572db18f7e7df079430c6..2ae6e9bd7279259461d07788100f6e593fd0c987 100644 (file)
@@ -56,7 +56,8 @@ MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
                m_generated(false),
                m_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
                m_disk_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
-               m_usage_timer(0)
+               m_usage_timer(0),
+               m_refcount(0)
 {
        data = NULL;
        if(dummy == false)