aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-07-10 17:49:40 -0700
committerPaul Gilbert2018-07-10 17:49:40 -0700
commit56246e3687aab868fb968c8daf75a926276825ff (patch)
tree67f9ac105fcd5497b71037a63891af19b842d1dd
parent874b3079b5cf913521ce1a2bcdf882b8f5ac572a (diff)
downloadscummvm-rg350-56246e3687aab868fb968c8daf75a926276825ff.tar.gz
scummvm-rg350-56246e3687aab868fb968c8daf75a926276825ff.tar.bz2
scummvm-rg350-56246e3687aab868fb968c8daf75a926276825ff.zip
XEEN: Fix crash trying to dream in Clouds of Xeen standalone
-rw-r--r--engines/xeen/worldofxeen/worldofxeen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/xeen/worldofxeen/worldofxeen.cpp b/engines/xeen/worldofxeen/worldofxeen.cpp
index ecaae8303b..772051da91 100644
--- a/engines/xeen/worldofxeen/worldofxeen.cpp
+++ b/engines/xeen/worldofxeen/worldofxeen.cpp
@@ -119,6 +119,10 @@ void WorldOfXeenEngine::death() {
}
void WorldOfXeenEngine::dream() {
+ if (g_vm->getGameID() == GType_Clouds)
+ // Dreams only available for Dark Side & World
+ return;
+
Windows &windows = *_windows;
Graphics::ManagedSurface savedBg;