mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
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
This commit is contained in:
parent
33afe1fb56
commit
bc1e54764b
2 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue