aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2009-10-23 21:48:28 +0000
committerArnaud Boutonné2009-10-23 21:48:28 +0000
commitee9273b3c0a975ff22b6b9fa306eb013e9646d31 (patch)
tree63b6e4ce52aaefb15c5af0b883b27a4cd403cb69 /engines/gob/videoplayer.cpp
parent701caea8d7b5f462df106a093051f534b3f1699b (diff)
downloadscummvm-rg350-ee9273b3c0a975ff22b6b9fa306eb013e9646d31.tar.gz
scummvm-rg350-ee9273b3c0a975ff22b6b9fa306eb013e9646d31.tar.bz2
scummvm-rg350-ee9273b3c0a975ff22b6b9fa306eb013e9646d31.zip
Gob - Fix animations without extension
svn-id: r45352
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index fe034304e1..6230cad18c 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -168,7 +168,7 @@ VideoPlayer::~VideoPlayer() {
bool VideoPlayer::findFile(char *fileName, Type &which) {
char *extStart = strrchr(fileName, '.');
// There's no empty extension, Or the filename with its current extension is not found
- if ((extStart == (fileName + strlen(fileName) - 1)) || (!_vm->_dataIO->existData(fileName))) {
+ if ((extStart) && ((extStart == (fileName + strlen(fileName) - 1)) || (!_vm->_dataIO->existData(fileName)))) {
*extStart = 0;
extStart = 0;
}