From 7e31ad646197be95788e508012c2f132024fbcb8 Mon Sep 17 00:00:00 2001 From: Meixner <andre.meixner@kit.edu> Date: Fri, 27 May 2022 15:51:24 +0200 Subject: [PATCH] fixed error in reloadFromVisualizationXML --- VirtualRobot/SceneObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualRobot/SceneObject.cpp b/VirtualRobot/SceneObject.cpp index 3d46ae106..332bb8468 100644 --- a/VirtualRobot/SceneObject.cpp +++ b/VirtualRobot/SceneObject.cpp @@ -1479,7 +1479,7 @@ namespace VirtualRobot if (!visualizationModelXML.empty()) { rapidxml::xml_document<> doc; - std::vector<char> cstr(collisionModelXML.size() + 1); // Create char buffer to store string copy + std::vector<char> cstr(visualizationModelXML.size() + 1); // Create char buffer to store string copy strcpy(cstr.data(), visualizationModelXML.c_str()); // Copy string into char buffer doc.parse<0>(cstr.data()); bool useAsColModel; -- GitLab