diff options
author | Kari Salminen | 2009-03-11 22:50:36 +0000 |
---|---|---|
committer | Kari Salminen | 2009-03-11 22:50:36 +0000 |
commit | 5fd0b88ffe1b273515c945a1189813f282141cd8 (patch) | |
tree | 6aad9329e226e49cd74bb5c953bff7be8f8eaf55 | |
parent | 88b44cef241b49a84a31226fee86c739edbb77da (diff) | |
download | scummvm-rg350-5fd0b88ffe1b273515c945a1189813f282141cd8.tar.gz scummvm-rg350-5fd0b88ffe1b273515c945a1189813f282141cd8.tar.bz2 scummvm-rg350-5fd0b88ffe1b273515c945a1189813f282141cd8.zip |
Fix assertion (Doh! That was supposed to be the other way).
svn-id: r39344
-rw-r--r-- | engines/cine/pal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp index a1c5b6f675..97d4b319dd 100644 --- a/engines/cine/pal.cpp +++ b/engines/cine/pal.cpp @@ -246,7 +246,7 @@ Palette &Palette::load(const byte *colors, const Graphics::PixelFormat format, c } byte *Palette::save(byte *colors, const uint numBytes, const Graphics::PixelFormat format) const { - assert(numBytes <= format.bytesPerPixel * colorCount()); // Make sure there's enough output space + assert(format.bytesPerPixel * colorCount() <= numBytes); // Make sure there's enough output space // Clear the part of the output palette we're going to be writing to with all black memset(colors, 0, format.bytesPerPixel * colorCount()); |