diff --git a/code/BlenderCustomData.cpp b/code/BlenderCustomData.cpp index b89a1ded8..566dd8edf 100644 --- a/code/BlenderCustomData.cpp +++ b/code/BlenderCustomData.cpp @@ -1,5 +1,3 @@ -#pragma once - #include "BlenderCustomData.h" #include @@ -59,7 +57,7 @@ namespace Assimp { */ #define IMPL_STRUCT_ALLOC(ty) \ void *alloc##ty(const size_t cnt) { \ - return new uint8_t[cnt * sizeof ty]; \ + return new uint8_t[cnt * sizeof(ty)]; \ } /**