1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix use of uninitialized data

This commit is contained in:
Craig Robbins 2015-01-14 15:43:33 +10:00
parent a4a6cc8eb1
commit 57f2fa57cd

View file

@ -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;