diff options
-rw-r--r-- | engines/sci/gui/gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/gui/gui.cpp b/engines/sci/gui/gui.cpp index 9872351340..62a60faf20 100644 --- a/engines/sci/gui/gui.cpp +++ b/engines/sci/gui/gui.cpp @@ -457,6 +457,9 @@ int16 SciGui::picNotValid(int16 newPicNotValid) { void SciGui::paletteSet(GuiResourceId resourceId, uint16 flags) { + // we are also called on EGA games as well, this doesnt make sense. doing this would actually break the system EGA palette + if (!_s->resMan->isVGA()) + return; _palette->setFromResource(resourceId, flags); } |