From: fredb Date: Mon, 28 Aug 2006 19:38:23 +0000 (+0000) Subject: Use getNodeValue as initially planned X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5314274ed6d30b9843346aa7575f083179f9b3d6;p=simgear.git Use getNodeValue as initially planned --- 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 );