aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2
diff options
context:
space:
mode:
authoruruk2014-08-11 15:42:55 +0200
committeruruk2014-08-11 15:42:55 +0200
commitf8e60e467fdcff8b36eb0bfad2a4c53459462fe6 (patch)
treea3a6b60d80a28c659eb906cbf055397e7d29d0d0 /engines/cge2
parentc3a5a9177b162beb70f28aa1f9408559f9482cbb (diff)
downloadscummvm-rg350-f8e60e467fdcff8b36eb0bfad2a4c53459462fe6.tar.gz
scummvm-rg350-f8e60e467fdcff8b36eb0bfad2a4c53459462fe6.tar.bz2
scummvm-rg350-f8e60e467fdcff8b36eb0bfad2a4c53459462fe6.zip
CGE2: Make movie() safer.
Diffstat (limited to 'engines/cge2')
-rw-r--r--engines/cge2/cge2_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/cge2_main.cpp b/engines/cge2/cge2_main.cpp
index c8c3a1e77a..7900eefb86 100644
--- a/engines/cge2/cge2_main.cpp
+++ b/engines/cge2/cge2_main.cpp
@@ -387,7 +387,7 @@ void CGE2Engine::movie(const char *ext) {
return;
char fn[12];
- sprintf(fn, "CGE.%s", (*ext == '.') ? ext + 1 : ext);
+ sprintf(fn, "CGE%s", ext);
if (_resman->exist(fn)) {
int now = _now;