From bd66bfb696263701ac7b67881cf5964ed527c585 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 11 Feb 2018 21:08:02 +0000 Subject: [PATCH] Fixes spotted by Florent --- src/Scripting/nasal-props.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 47ffbd334..92d13d9b3 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -176,7 +176,7 @@ static naRef f_setAttribute(naContext c, naRef me, int argc, naRef* args) { NODEARG(); if (node->getAttribute(SGPropertyNode::PROTECTED)) { - naRuntimeError(c, "props.setAttribute() called on proptected property %s", + naRuntimeError(c, "props.setAttribute() called on protected property %s", node->getPath().c_str()); return naNil(); } @@ -637,8 +637,7 @@ static naRef f_removeChild(naContext c, naRef me, int argc, naRef* args) n = node->getChild(naStr_data(child), (int)index.num); if (n && n->getAttribute(SGPropertyNode::PROTECTED)) { naRuntimeError(c, "props.Node.removeChild() called on protected child %s of %s", - node->getPath().c_str(), - naStr_data(child)); + naStr_data(child), node->getPath().c_str()); return naNil(); } n = node->removeChild(naStr_data(child), (int)index.num);