aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/cstime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/cstime.cpp')
-rw-r--r--engines/mohawk/cstime.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/cstime.cpp b/engines/mohawk/cstime.cpp
index f3760a58ed..27d646fde1 100644
--- a/engines/mohawk/cstime.cpp
+++ b/engines/mohawk/cstime.cpp
@@ -77,6 +77,10 @@ MohawkEngine_CSTime::~MohawkEngine_CSTime() {
Common::Error MohawkEngine_CSTime::run() {
MohawkEngine::run();
+ if (!_mixer->isReady()) {
+ return Common::kAudioDeviceInitFailed;
+ }
+
_console = new CSTimeConsole(this);
_gfx = new CSTimeGraphics(this);
_video = new VideoManager(this);