aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-10-29 00:14:09 +0000
committerJohannes Schickel2009-10-29 00:14:09 +0000
commit0a1a4c7eb4b57728e483063f17658bc9e40b83f0 (patch)
treef1975edfb6021f02835d3af2fbbdad786c66336f /engines/kyra
parent8150fc07bc8b997a0d61332a5d9ebc31e4acdb5d (diff)
downloadscummvm-rg350-0a1a4c7eb4b57728e483063f17658bc9e40b83f0.tar.gz
scummvm-rg350-0a1a4c7eb4b57728e483063f17658bc9e40b83f0.tar.bz2
scummvm-rg350-0a1a4c7eb4b57728e483063f17658bc9e40b83f0.zip
Fix regression in r45414.
svn-id: r45495
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/script_tim.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp
index 1c928a1e6c..c2de015a0b 100644
--- a/engines/kyra/script_tim.cpp
+++ b/engines/kyra/script_tim.cpp
@@ -186,9 +186,10 @@ TIM *TIMInterpreter::load(const char *filename, const Common::Array<const TIMOpc
_tim->isLoLOutro = (_vm->gameFlags().gameID == GI_LOL) && !scumm_stricmp(filename, "LOLFINAL.TIM");
_tim->lolCharacter = 0;
- _tim = 0;
- return _tim;
+ TIM *r = _tim;
+ _tim = 0;
+ return r;
}
void TIMInterpreter::unload(TIM *&tim) const {