From f5cceef38fec0fc0aedb012d5e37cddae8e293ea Mon Sep 17 00:00:00 2001 From: Ricardo Antunes Date: Thu, 28 Sep 2023 17:00:12 +0100 Subject: [PATCH] fix(core): fix glm reflection --- core/src/cubos/core/reflection/external/glm.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/cubos/core/reflection/external/glm.cpp b/core/src/cubos/core/reflection/external/glm.cpp index b184545ec..9a4861bb1 100644 --- a/core/src/cubos/core/reflection/external/glm.cpp +++ b/core/src/cubos/core/reflection/external/glm.cpp @@ -16,18 +16,18 @@ class AddressOfImpl final : public FieldsTrait::AddressOf public: /// @brief Constructs. /// @param column Column index. - AddressOfImpl(size_t column) + AddressOfImpl(glm::length_t column) : mColumn(column) { } uintptr_t get(const void* instance) const override { - return reinterpret_cast(&(static_cast(instance)[mColumn])); + return reinterpret_cast(&((*static_cast(instance))[mColumn])); } private: - size_t mColumn; + glm::length_t mColumn; }; #define AUTO_CONSTRUCTIBLE(type) \