From d6a9bdfc658e1061208fc40e679bcb7e94b642e2 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 11 Nov 2016 19:19:02 +0100 Subject: [PATCH] Fix code analysis warnings --- src/Components/Modules/ModelSurfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Modules/ModelSurfs.cpp b/src/Components/Modules/ModelSurfs.cpp index 0c53feef..c06a3a50 100644 --- a/src/Components/Modules/ModelSurfs.cpp +++ b/src/Components/Modules/ModelSurfs.cpp @@ -136,7 +136,7 @@ namespace Components surfs->numSurfaces = newSurfs->numSurfaces; model->lods[i].surfs = newSurfs->surfaces; - std::memcpy(model->lods[i].partBits, newSurfs->pad, 24); + std::memcpy(&model->lods[i].partBits, newSurfs->pad, 24); short numSurfs = static_cast(newSurfs->numSurfaces); model->lods[i].numSurfs = numSurfs;