diff options
-rw-r--r-- | graphics/dxa_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/dxa_player.cpp b/graphics/dxa_player.cpp index c2c0b66208..dc4ad5551c 100644 --- a/graphics/dxa_player.cpp +++ b/graphics/dxa_player.cpp @@ -127,7 +127,7 @@ bool DXAPlayer::loadFile(const char *filename) { if (_scaleMode != S_NONE) { _scaledBuffer = (uint8 *)malloc(_frameSize); - if (_scaledBuffer) + if (!_scaledBuffer) error("Error allocating scale buffer (size %d)", _frameSize); } |