From 8093111697385c1f9e8f72e2a7f8e12c924670e2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 1 Nov 2010 17:02:44 +0000 Subject: Oops, bools aren't floats! --- src/dictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dictionary.cpp b/src/dictionary.cpp index ec65a3b..f3a89c8 100644 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -183,7 +183,7 @@ int64_t Gats::Dictionary::getInt( const Bu::FString &sKey ) double Gats::Dictionary::getFloat( const Bu::FString &sKey ) { - Gats::Boolean *pOb = dynamic_cast( get( sKey ) ); + Gats::Float *pOb = dynamic_cast( get( sKey ) ); if( pOb ) throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", sKey.getStr() ); @@ -243,7 +243,7 @@ int64_t Gats::Dictionary::getInt( const Bu::FString &sKey ) const double Gats::Dictionary::getFloat( const Bu::FString &sKey ) const { - Gats::Boolean *pOb = dynamic_cast( get( sKey ) ); + Gats::Float *pOb = dynamic_cast( get( sKey ) ); if( pOb ) throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", sKey.getStr() ); -- cgit v1.2.3