diff --git a/VirtualRobot/Nodes/RobotNodeHemisphere.cpp b/VirtualRobot/Nodes/RobotNodeHemisphere.cpp index a2d999867affb1b8adf6f5d79ffc12675ef5607b..d472654467060a64d9de011afd00050be2575c48 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());