Skip to content

Commit

Permalink
fix(core): fix glm reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
RiscadoA committed Sep 28, 2023
1 parent 7d7b90f commit f5cceef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/cubos/core/reflection/external/glm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uintptr_t>(&(static_cast<const T*>(instance)[mColumn]));
return reinterpret_cast<uintptr_t>(&((*static_cast<const T*>(instance))[mColumn]));
}

private:
size_t mColumn;
glm::length_t mColumn;
};

#define AUTO_CONSTRUCTIBLE(type) \
Expand Down

0 comments on commit f5cceef

Please sign in to comment.