summaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-28 23:34:58 +0200
committerPilzAdam <pilzadam@minetest.net>2013-07-28 23:34:58 +0200
commitff7c380d0eabf96a8677dfa3a94f0d18191572cf (patch)
tree9b934d515324701c32632cd646fe42bec16fe3fd /src/mapblock.cpp
parent4fb4efd8ed54a81ea545e51265f2acdd01654f21 (diff)
downloadminetest-ff7c380d0eabf96a8677dfa3a94f0d18191572cf.tar.gz
minetest-ff7c380d0eabf96a8677dfa3a94f0d18191572cf.tar.bz2
minetest-ff7c380d0eabf96a8677dfa3a94f0d18191572cf.zip
Fix warnings in mapblock.cpp
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 56d4416a4..bd2e19b41 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -44,6 +44,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
*/
MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
+ heat(0),
+ heat_time(0),
+ humidity(0),
+ humidity_time(0),
m_parent(parent),
m_pos(pos),
m_gamedef(gamedef),
@@ -58,11 +62,7 @@ MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy):
m_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
m_disk_timestamp(BLOCK_TIMESTAMP_UNDEFINED),
m_usage_timer(0),
- m_refcount(0),
- heat_time(0),
- heat(0),
- humidity_time(0),
- humidity(0)
+ m_refcount(0)
{
data = NULL;
if(dummy == false)