From 0a1a4c7eb4b57728e483063f17658bc9e40b83f0 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 29 Oct 2009 00:14:09 +0000 Subject: Fix regression in r45414. svn-id: r45495 --- engines/kyra/script_tim.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/kyra') 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::ArrayisLoLOutro = (_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 { -- cgit v1.2.3