mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 06:33:49 +00:00
* BugFix: Clear a lot of warnings and correct a few actual programming errors along the way.
This commit is contained in:
parent
ef514d0e6b
commit
1b6b803a20
61 changed files with 120 additions and 118 deletions
|
|
@ -1199,7 +1199,7 @@ bool GBitmap::readBitmap( const String &bmType, Stream &ioStream )
|
|||
if ( regInfo == NULL )
|
||||
{
|
||||
Con::errorf( "[GBitmap::readBitmap] unable to find registration for extension [%s]", bmType.c_str() );
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
return regInfo->readFunc( ioStream, this );
|
||||
|
|
@ -1212,7 +1212,7 @@ bool GBitmap::writeBitmap( const String &bmType, Stream &ioStream, U32 compress
|
|||
if ( regInfo == NULL )
|
||||
{
|
||||
Con::errorf( "[GBitmap::writeBitmap] unable to find registration for extension [%s]", bmType.c_str() );
|
||||
return NULL;
|
||||
return false;
|
||||
}
|
||||
|
||||
return regInfo->writeFunc( this, ioStream, (compressionLevel == U32_MAX) ? regInfo->defaultCompression : compressionLevel );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue