summaryrefslogtreecommitdiff
path: root/src/mapgen
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-01-22 21:13:06 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2019-01-22 22:13:06 +0100
commitbc1e54764b736310ca3797dc3e06fe8326949367 (patch)
tree5a45a9fccfee16faffb4b50231db539701002f38 /src/mapgen
parent33afe1fb56273251400fed1eb13b2b407a3d0420 (diff)
downloadminetest-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')
-rw-r--r--src/mapgen/dungeongen.cpp2
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;