Fix typo in initial _scaleBuffer check

svn-id: r24840
This commit is contained in:
Travis Howell 2006-12-11 08:31:32 +00:00
parent b00e143d74
commit 983954821c

View File

@ -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);
}