From: kwolekr Date: Sat, 9 Nov 2013 20:26:04 +0000 (-0500) Subject: Weather: Fix uninitialized weather_update_time (sorry proller) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b401e58c0dcf0993c6198dcc21e8787c2282d8f6;p=zefram%2Fminetest%2Fminetest_engine.git Weather: Fix uninitialized weather_update_time (sorry proller) --- diff --git a/src/map.cpp b/src/map.cpp index cea20b0d..f7401193 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); }