aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/animation.cpp
diff options
context:
space:
mode:
authorStrangerke2013-09-13 08:29:19 +0200
committerStrangerke2013-09-13 08:29:19 +0200
commitf7c34949db4df92aced4a654072ef74bd064c421 (patch)
treef2ce8205df5c856a20d7b7f1740c18e1419641b9 /engines/avalanche/animation.cpp
parent8a59c9c1b27cc026ba096c44486f504ba1eb8c5d (diff)
downloadscummvm-rg350-f7c34949db4df92aced4a654072ef74bd064c421.tar.gz
scummvm-rg350-f7c34949db4df92aced4a654072ef74bd064c421.tar.bz2
scummvm-rg350-f7c34949db4df92aced4a654072ef74bd064c421.zip
AVALANCHE: Error out when critical files are missing
Diffstat (limited to 'engines/avalanche/animation.cpp')
-rw-r--r--engines/avalanche/animation.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/avalanche/animation.cpp b/engines/avalanche/animation.cpp
index 615bf94d40..57353255db 100644
--- a/engines/avalanche/animation.cpp
+++ b/engines/avalanche/animation.cpp
@@ -55,10 +55,8 @@ void AnimationType::init(byte spritenum, bool doCheck, Animation *anim) {
Common::File inf;
Common::String filename = Common::String::format("sprite%d.avd", spritenum);
- if (!inf.open(filename)) {
- warning("AVALANCHE: Trip: File not found: %s", filename.c_str());
- return;
- }
+ if (!inf.open(filename))
+ error("AVALANCHE: Trip: File not found: %s", filename.c_str());
inf.seek(177);