diff --git a/core/src/cubos/core/reflection/traits/fields.cpp b/core/src/cubos/core/reflection/traits/fields.cpp index 6dc225dda..408bec493 100644 --- a/core/src/cubos/core/reflection/traits/fields.cpp +++ b/core/src/cubos/core/reflection/traits/fields.cpp @@ -190,7 +190,7 @@ const void* FieldsTrait::ConstView::get(const Field& field) const const void* FieldsTrait::ConstView::get(const std::string& name) const { - const auto* field = mTrait.field(name); + auto field = mTrait.field(name); if (field == nullptr) {