aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorPaul Gilbert2009-05-16 00:33:49 +0000
committerPaul Gilbert2009-05-16 00:33:49 +0000
commitc3cf7420bd097df594b1d278091bdfe4acea2cdc (patch)
tree319e46d25e0da03a65ac1df87aafadfa8a972845 /engines/cruise
parent340b5b93784ddf05b205ef5dc2f1120204c70743 (diff)
downloadscummvm-rg350-c3cf7420bd097df594b1d278091bdfe4acea2cdc.tar.gz
scummvm-rg350-c3cf7420bd097df594b1d278091bdfe4acea2cdc.tar.bz2
scummvm-rg350-c3cf7420bd097df594b1d278091bdfe4acea2cdc.zip
Fixed incorrect pathfinding data entry being deleted when a temporary actor animation is removed
svn-id: r40615
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/function.cpp4
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;