diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/batplayer.cpp | 3 | ||||
-rw-r--r-- | engines/gob/scnplayer.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/batplayer.cpp b/engines/gob/batplayer.cpp index 4cce68302f..563a1809d3 100644 --- a/engines/gob/batplayer.cpp +++ b/engines/gob/batplayer.cpp @@ -43,6 +43,9 @@ BATPlayer::~BATPlayer() { } bool BATPlayer::play(const char *fileName) { + if (!fileName) + return false; + debugC(1, kDebugDemo, "Playing BAT \"%s\"", fileName); init(); diff --git a/engines/gob/scnplayer.cpp b/engines/gob/scnplayer.cpp index 573243c768..bd42cee09f 100644 --- a/engines/gob/scnplayer.cpp +++ b/engines/gob/scnplayer.cpp @@ -43,6 +43,9 @@ SCNPlayer::~SCNPlayer() { } bool SCNPlayer::play(const char *fileName) { + if (!fileName) + return false; + debugC(1, kDebugDemo, "Playing SCN \"%s\"", fileName); init(); |