Browse Source

fixed warning

Peter LaValle 10 years ago
parent
commit
99e45b995b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/openddlparser/code/Value.cpp

+ 1 - 1
contrib/openddlparser/code/Value.cpp

@@ -46,7 +46,7 @@ void Value::setBool( bool value ) {
 
 bool Value::getBool() {
     assert( ddl_bool == m_type );
-    return ( bool ) ( *m_data );
+    return ( *m_data ) ? true : false;
 }
 
 void Value::setInt8( int8 value ) {