From 2badb002c257207e8fbe242dd81556630c26b0c6 Mon Sep 17 00:00:00 2001
From: Rainer Kartmann <rainer.kartmann@kit.edu>
Date: Mon, 13 Feb 2023 09:47:56 +0100
Subject: [PATCH] fix more assertions

---
 VirtualRobot/Nodes/RobotNodeHemisphere.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/VirtualRobot/Nodes/RobotNodeHemisphere.cpp b/VirtualRobot/Nodes/RobotNodeHemisphere.cpp
index a2d999867..d47265446 100644
--- a/VirtualRobot/Nodes/RobotNodeHemisphere.cpp
+++ b/VirtualRobot/Nodes/RobotNodeHemisphere.cpp
@@ -127,7 +127,7 @@ namespace VirtualRobot
         // The second node needs to store a reference to the first node.
         if (secondData)
         {
-            VR_ASSERT_MESSAGE(not secondData->first, "Second must not be initialized yet.");
+            VR_ASSERT_MESSAGE(not secondData->firstNode, "Second must not be initialized yet.");
 
             RobotNodeHemisphere* firstNode = dynamic_cast<RobotNodeHemisphere*>(parent.get());
             RobotNodeHemisphere* secondNode = this;
@@ -171,7 +171,7 @@ namespace VirtualRobot
         }
         else if (secondData)
         {
-            VR_ASSERT_MESSAGE(secondData->first, "First node must be known to second node.");
+            VR_ASSERT_MESSAGE(secondData->firstNode, "First node must be known to second node.");
 
             hemisphere::CachedMaths& maths = secondData->maths();
             Eigen::Vector2f actuators(secondData->firstNode->getJointValue(), this->getJointValue());
-- 
GitLab