diff options
Diffstat (limited to '')
-rw-r--r-- | src/dictionary.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) | |||
183 | 183 | ||
184 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) | 184 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) |
185 | { | 185 | { |
186 | Gats::Boolean *pOb = dynamic_cast<Gats::Boolean *>( get( sKey ) ); | 186 | Gats::Float *pOb = dynamic_cast<Gats::Float *>( get( sKey ) ); |
187 | if( pOb ) | 187 | if( pOb ) |
188 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", | 188 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", |
189 | sKey.getStr() ); | 189 | sKey.getStr() ); |
@@ -243,7 +243,7 @@ int64_t Gats::Dictionary::getInt( const Bu::FString &sKey ) const | |||
243 | 243 | ||
244 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) const | 244 | double Gats::Dictionary::getFloat( const Bu::FString &sKey ) const |
245 | { | 245 | { |
246 | Gats::Boolean *pOb = dynamic_cast<Gats::Boolean *>( get( sKey ) ); | 246 | Gats::Float *pOb = dynamic_cast<Gats::Float *>( get( sKey ) ); |
247 | if( pOb ) | 247 | if( pOb ) |
248 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", | 248 | throw Bu::ExceptionBase("Cannot cast item '%s' to bool.", |
249 | sKey.getStr() ); | 249 | sKey.getStr() ); |