diff options
author | Gregory Montoir | 2006-03-05 23:50:24 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-03-05 23:50:24 +0000 |
commit | 45656e9fcf2b534163a80a1502623c577f125c79 (patch) | |
tree | 408c335508ae6b9f02cb15ca971b2e61a342f8fa /engines | |
parent | 06398d1a840e64ba63e5adad7e10c0d315a3832e (diff) | |
download | scummvm-rg350-45656e9fcf2b534163a80a1502623c577f125c79.tar.gz scummvm-rg350-45656e9fcf2b534163a80a1502623c577f125c79.tar.bz2 scummvm-rg350-45656e9fcf2b534163a80a1502623c577f125c79.zip |
fixed palette handling regression, as reported on the forum.
svn-id: r21108
Diffstat (limited to 'engines')
-rw-r--r-- | engines/queen/display.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/queen/display.cpp b/engines/queen/display.cpp index d56e472e30..c6833f5045 100644 --- a/engines/queen/display.cpp +++ b/engines/queen/display.cpp @@ -155,7 +155,9 @@ void Display::dynalumUpdate(int16 x, int16 y) { void Display::palSet(const uint8 *pal, int start, int end, bool updateScreen) { debug(9, "Display::palSet(%d, %d)", start, end); const int numColors = end - start + 1; + assert(numColors <= 256); uint8 tempPal[256 * 4]; + pal += start * 3; for (int i = 0; i < numColors; i++) { tempPal[4 * i + 0] = *pal++; tempPal[4 * i + 1] = *pal++; |