[Scummvm-cvs-logs] SF.net SVN: scummvm:[45354] scummvm/branches/branch-1-0-0/engines/gob/ videoplayer.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Sat Oct 24 00:02:54 CEST 2009
Revision: 45354
http://scummvm.svn.sourceforge.net/scummvm/?rev=45354&view=rev
Author: strangerke
Date: 2009-10-23 22:02:54 +0000 (Fri, 23 Oct 2009)
Log Message:
-----------
Gob - Backport of r45353: Fix animations without extension
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/engines/gob/videoplayer.cpp
Modified: scummvm/branches/branch-1-0-0/engines/gob/videoplayer.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/gob/videoplayer.cpp 2009-10-23 22:00:51 UTC (rev 45353)
+++ scummvm/branches/branch-1-0-0/engines/gob/videoplayer.cpp 2009-10-23 22:02:54 UTC (rev 45354)
@@ -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