From 5314274ed6d30b9843346aa7575f083179f9b3d6 Mon Sep 17 00:00:00 2001 From: fredb Date: Mon, 28 Aug 2006 19:38:23 +0000 Subject: [PATCH] Use getNodeValue as initially planned --- simgear/scene/model/persparam.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/model/persparam.hxx b/simgear/scene/model/persparam.hxx index 8cf7283e..776e0c9c 100755 --- a/simgear/scene/model/persparam.hxx +++ b/simgear/scene/model/persparam.hxx @@ -17,8 +17,8 @@ public: if ( node != 0 ) { SGPropertyNode_ptr rand_n = node->getNode( "random" ); if ( rand_n != 0 ) { - _min = rand_n->getDoubleValue( "min", 0.0 ); - _max = rand_n->getDoubleValue( "max", 1.0 ); + _min = getNodeValue( rand_n, "min", (T)0 ); + _max = getNodeValue( rand_n, "max", (T)1 ); shuffle(); } else { _var = _min = _max = getNodeValue( props, name, defval ); -- 2.39.5