aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2006-12-11 08:31:32 +0000
committerTravis Howell2006-12-11 08:31:32 +0000
commit983954821c60847c5382aa87df631b1aa135938d (patch)
treee1d8fc8eb8c5bd6a8af7aa0f379cba1d1b1a0cd5
parentb00e143d74a1f0685f95438b0b8f263cd28951d4 (diff)
downloadscummvm-rg350-983954821c60847c5382aa87df631b1aa135938d.tar.gz
scummvm-rg350-983954821c60847c5382aa87df631b1aa135938d.tar.bz2
scummvm-rg350-983954821c60847c5382aa87df631b1aa135938d.zip
Fix typo in initial _scaleBuffer check
svn-id: r24840
-rw-r--r--graphics/dxa_player.cpp2
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);
}