From 3620be8dbc949ad78202fd3fd43c082fb9b6f44c Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 23 Oct 2005 14:04:42 +0000 Subject: [PATCH] Cosmetic updates. --- simgear/props/props.cxx | 4 ++-- simgear/scene/material/mat.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index dc7ccd6b..cd993d5f 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -912,13 +912,13 @@ SGPropertyNode::getChildren (const char * name) const /** - * Revove child by position. + * Remove child by position. */ SGPropertyNode_ptr SGPropertyNode::removeChild (int pos, bool keep) { SGPropertyNode_ptr node; - if (pos < 0 || pos > _children.size() - 1) + if (pos < 0 || pos >= _children.size()) return node; vector::iterator it = _children.begin(); diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index a886f33e..1c1258d9 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -1,4 +1,4 @@ -// e mat.cxx -- class to handle material properties +// mat.cxx -- class to handle material properties // // Written by Curtis Olson, started May 1998. // -- 2.39.5