Minor cleanups

- remove redundant conditional
 - remove unused vars
 - remove extra ags to printf
 - reduce scope of decl
This commit is contained in:
Andy Maloney 2013-12-04 16:45:09 -05:00
parent 65099897f4
commit 396a7064dc
6 changed files with 5 additions and 8 deletions

View file

@ -614,7 +614,7 @@ void GameBase::onUnmount( SceneObject *obj, S32 node )
bool GameBase::setDataBlockProperty( void *obj, const char *index, const char *db)
{
if( db == NULL || !db || !db[ 0 ] )
if( db == NULL || !db[ 0 ] )
{
Con::errorf( "GameBase::setDataBlockProperty - Can't unset datablock on GameBase objects" );
return false;