Skip to content

Commit

Permalink
Weather: Fix uninitialized weather_update_time (sorry proller)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Nov 9, 2013
1 parent 0aeecf3 commit b401e58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit b401e58

Please sign in to comment.