diff --git a/contrib/openddlparser/code/Value.cpp b/contrib/openddlparser/code/Value.cpp index f94ef081f..cbe28caab 100644 --- a/contrib/openddlparser/code/Value.cpp +++ b/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 ) {