From 85f612076f5eb3f3882397ca333ad8cf9d64ac92 Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Fri, 2 May 2008 22:24:03 +0000 Subject: fix bug in hof animator (incomplete initialization of _animObjects) svn-id: r31835 --- engines/kyra/animator_hof.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra') diff --git a/engines/kyra/animator_hof.cpp b/engines/kyra/animator_hof.cpp index b4ab4383d0..76c66252ee 100644 --- a/engines/kyra/animator_hof.cpp +++ b/engines/kyra/animator_hof.cpp @@ -37,7 +37,7 @@ void KyraEngine_HoF::restorePage3() { void KyraEngine_HoF::clearAnimObjects() { debugC(9, kDebugLevelAnimator, "KyraEngine_HoF::clearAnimObjects()"); - memset(_animObjects, 0, sizeof(_animObjects)); + memset(_animObjects, 0, sizeof(AnimObj) * 41); _animObjects[0].index = 0; _animObjects[0].type = 0; -- cgit v1.2.3