diff --git a/spatial/include/spatial/core/geometry/geometry_type.hpp b/spatial/include/spatial/core/geometry/geometry_type.hpp index 2a13c629..377ccd32 100644 --- a/spatial/include/spatial/core/geometry/geometry_type.hpp +++ b/spatial/include/spatial/core/geometry/geometry_type.hpp @@ -84,7 +84,10 @@ class geometry_t { GeometryType GetType() const { // return the type - return Load(const_data_ptr_cast(data.GetPrefix())); + const auto type = Load(const_data_ptr_cast(data.GetPrefix())); + const auto props = Load(const_data_ptr_cast(data.GetPrefix() + 1)); + props.CheckVersion(); + return type; } GeometryProperties GetProperties() const {