diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-01-14 15:43:33 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-14 15:43:33 +1000 |
commit | 57f2fa57cda957be302b3542a59cd51209d46f2d (patch) | |
tree | dc942d98ad528f71a5db4763069c95ad2eb8c0f6 /src | |
parent | a4a6cc8eb1197648bce9bec1f0a1aa6aa4b787b7 (diff) | |
download | minetest-57f2fa57cda957be302b3542a59cd51209d46f2d.tar.gz minetest-57f2fa57cda957be302b3542a59cd51209d46f2d.tar.bz2 minetest-57f2fa57cda957be302b3542a59cd51209d46f2d.zip |
Fix use of uninitialized data
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp index 20dc44139..ec2a5f74c 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -3660,8 +3660,7 @@ void MMVManip::initialEmerge(v3s16 blockpos_min, v3s16 blockpos_max, block = svrmap->emergeBlock(p, false); if (block == NULL) block = svrmap->createBlock(p); - else - block->copyTo(*this); + block->copyTo(*this); } else { flags |= VMANIP_BLOCK_DATA_INEXIST; |