Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix use of uninitialized data
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+1
−2
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; |
|
|
|
|
|