diff options
author | Paramat <paramat@users.noreply.github.com> | 2019-01-22 21:13:06 +0000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-01-22 22:13:06 +0100 |
commit | bc1e54764b736310ca3797dc3e06fe8326949367 (patch) | |
tree | 5a45a9fccfee16faffb4b50231db539701002f38 /src/mapgen/dungeongen.cpp | |
parent | 33afe1fb56273251400fed1eb13b2b407a3d0420 (diff) | |
download | minetest-bc1e54764b736310ca3797dc3e06fe8326949367.tar.gz minetest-bc1e54764b736310ca3797dc3e06fe8326949367.tar.bz2 minetest-bc1e54764b736310ca3797dc3e06fe8326949367.zip |
Fix warnings about dungeongen.cpp memcpy() and unused variable in MapBlock::deSerializeNetworkSpecific() (#8122)
* Fix warning about dungeongen.cpp memcpy()
* Fix unused variable in MapBlock::deSerializeNetworkSpecific()
* Fix unused variable a simpler way
Diffstat (limited to 'src/mapgen/dungeongen.cpp')
-rw-r--r-- | src/mapgen/dungeongen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen/dungeongen.cpp b/src/mapgen/dungeongen.cpp index 32bea4caa..77ac05770 100644 --- a/src/mapgen/dungeongen.cpp +++ b/src/mapgen/dungeongen.cpp @@ -51,7 +51,7 @@ DungeonGen::DungeonGen(const NodeDefManager *ndef, #endif if (dparams) { - memcpy(&dp, dparams, sizeof(dp)); + dp = *dparams; } else { // Default dungeon parameters dp.seed = 0; |