[Scummvm-cvs-logs] SF.net SVN: scummvm:[45352] scummvm/trunk/engines/gob/videoplayer.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Fri Oct 23 23:48:28 CEST 2009
Revision: 45352
http://scummvm.svn.sourceforge.net/scummvm/?rev=45352&view=rev
Author: strangerke
Date: 2009-10-23 21:48:28 +0000 (Fri, 23 Oct 2009)
Log Message:
-----------
Gob - Fix animations without extension
Modified Paths:
--------------
scummvm/trunk/engines/gob/videoplayer.cpp
Modified: scummvm/trunk/engines/gob/videoplayer.cpp
===================================================================
--- scummvm/trunk/engines/gob/videoplayer.cpp 2009-10-23 20:41:59 UTC (rev 45351)
+++ scummvm/trunk/engines/gob/videoplayer.cpp 2009-10-23 21:48:28 UTC (rev 45352)
@@ -168,7 +168,7 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list