diff options
| -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++; | 
