From ecb6b7bf54e66cc0ba0f4a79f4111abc42db08c2 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 1 Mar 2009 08:28:10 +0000 Subject: Added an explicit clearing of all animation fields for new animations - this fixes a problem where the player could disappear if he had to rotate to face a selected object svn-id: r39019 --- engines/cruise/function.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 65108d9c79..6ae11f2668 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -1012,6 +1012,7 @@ actorStruct *addAnimation(actorStruct * pHead, int overlay, int objIdx, int para if (!pNewElement) return NULL; + memset(pNewElement, 0, sizeof(actorStruct)); pNewElement->next = pPrevious->next; pPrevious->next = pNewElement; -- cgit v1.2.3