diff options
-rw-r--r-- | engines/cruise/function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/function.cpp b/engines/cruise/function.cpp index 529cf0bb39..59a9fd50bb 100644 --- a/engines/cruise/function.cpp +++ b/engines/cruise/function.cpp @@ -1177,8 +1177,8 @@ int removeAnimation(actorStruct * pHead, int overlay, int objIdx, int objType) { dir = pl->startDirection; - if (pl->idx >= 0) - freePerso(pl->idx); + if (pl->pathId >= 0) + freePerso(pl->pathId); free(pl); pl = pl4; |