Skip to content

Commit b401e58

Browse files
committedNov 9, 2013
Weather: Fix uninitialized weather_update_time (sorry proller)
1 parent 0aeecf3 commit b401e58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/map.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -2841,6 +2841,8 @@ MapBlock* ServerMap::finishBlockMake(BlockMakeData *data,
28412841
y<=blockpos_max.Y+extra_borders.Y; y++)
28422842
{
28432843
v3s16 p(x, y, z);
2844+
MapBlock *block = getBlockNoCreateNoEx(p);
2845+
block->weather_update_time = 0;
28442846
updateBlockHeat(senv, p * MAP_BLOCKSIZE, NULL);
28452847
updateBlockHumidity(senv, p * MAP_BLOCKSIZE, NULL);
28462848
}

0 commit comments

Comments
 (0)
Please sign in to comment.