diff --git a/engines/kyra/script_tim.cpp b/engines/kyra/script_tim.cpp index 1c928a1e6c4..c2de015a0bc 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 {