aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/videoplayer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 4aea102124..b707612c7b 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -171,7 +171,11 @@ bool VideoPlayer::findFile(char *fileName, Type &which) {
if (extStart == (fileName + strlen(fileName) - 1)) {
*extStart = 0;
extStart = 0;
- }
+ } else
+ if (!_vm->_dataIO->existData(fileName)) {
+ *extStart = 0;
+ extStart = 0;
+ }
if (extStart) {
// The requested file already has an extension. Verifying.