diff options
author | kwolekr <kwolekr@minetest.net> | 2013-11-09 15:26:04 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-11-09 15:29:22 -0500 |
commit | b401e58c0dcf0993c6198dcc21e8787c2282d8f6 (patch) | |
tree | 5c35ab26388201a559cbef45270015a99c4c2f0d /src/map.cpp | |
parent | 0aeecf3f7f1adb37de46d1e6d68653082dd8111a (diff) | |
download | minetest-b401e58c0dcf0993c6198dcc21e8787c2282d8f6.tar.gz minetest-b401e58c0dcf0993c6198dcc21e8787c2282d8f6.tar.bz2 minetest-b401e58c0dcf0993c6198dcc21e8787c2282d8f6.zip |
Weather: Fix uninitialized weather_update_time (sorry proller)
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index cea20b0d3..f74011933 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -2841,6 +2841,8 @@ MapBlock* ServerMap::finishBlockMake(BlockMakeData *data, y<=blockpos_max.Y+extra_borders.Y; y++) { v3s16 p(x, y, z); + MapBlock *block = getBlockNoCreateNoEx(p); + block->weather_update_time = 0; updateBlockHeat(senv, p * MAP_BLOCKSIZE, NULL); updateBlockHumidity(senv, p * MAP_BLOCKSIZE, NULL); } |