diff --git a/src/esp/scene/SceneNode.cpp b/src/esp/scene/SceneNode.cpp index 59d0866e8a..4e4278a5c4 100644 --- a/src/esp/scene/SceneNode.cpp +++ b/src/esp/scene/SceneNode.cpp @@ -18,7 +18,9 @@ namespace scene { SceneNode::SceneNode() : Mn::SceneGraph::AbstractFeature3D{*this}, nodeSensorSuite_(new esp::sensor::SensorSuite(*this)), - subtreeSensorSuite_(new esp::sensor::SensorSuite(*this)) { + subtreeSensorSuite_(new esp::sensor::SensorSuite(*this)), + semanticIDs_(static_cast(SceneNodeSemanticDataIDX::NUM_SEMANTIC_IDS), + 0) { setCachedTransformations(Mn::SceneGraph::CachedTransformation::Absolute); absoluteTransformation_ = absoluteTransformation(); // Once created, nodeSensorSuite_ and subtreeSensorSuite_ are features owned diff --git a/src/esp/scene/SceneNode.h b/src/esp/scene/SceneNode.h index 6623fcf1db..8df5d386ef 100644 --- a/src/esp/scene/SceneNode.h +++ b/src/esp/scene/SceneNode.h @@ -353,8 +353,7 @@ class SceneNode : public MagnumObject, //! The semantic category of this node. Used to render attached Drawables with //! Semantic sensor when no perVertexObjectIds are present. - std::vector semanticIDs_{ - static_cast(SceneNodeSemanticDataIDX::NUM_SEMANTIC_IDS), 0}; + std::vector semanticIDs_; }; // namespace scene // Traversal Helpers