aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2009-03-01 08:28:10 +0000
committerPaul Gilbert2009-03-01 08:28:10 +0000
commitecb6b7bf54e66cc0ba0f4a79f4111abc42db08c2 (patch)
treee9cc54c48fed027948cbcf991bd91bbb0718844e /engines
parentb08c22b283fa2df5d67a04c09fa436370934174c (diff)
downloadscummvm-rg350-ecb6b7bf54e66cc0ba0f4a79f4111abc42db08c2.tar.gz
scummvm-rg350-ecb6b7bf54e66cc0ba0f4a79f4111abc42db08c2.tar.bz2
scummvm-rg350-ecb6b7bf54e66cc0ba0f4a79f4111abc42db08c2.zip
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
Diffstat (limited to 'engines')
-rw-r--r--engines/cruise/function.cpp1
1 files changed, 1 insertions, 0 deletions
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;