1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix GCC class-memaccess warnings (#10239)

This commit is contained in:
Paul Ouellette
2020-08-01 11:25:33 -04:00
committed by GitHub
parent aba8c37531
commit 542df11bed
2 changed files with 8 additions and 1 deletions

View File

@@ -424,7 +424,7 @@ float NoisePerlin3D(NoiseParams *np, float x, float y, float z, s32 seed)
Noise::Noise(NoiseParams *np_, s32 seed, u32 sx, u32 sy, u32 sz)
{
memcpy(&np, np_, sizeof(np));
np = *np_;
this->seed = seed;
this->sx = sx;
this->sy = sy;