diff options
author | Paul Gilbert | 2009-05-16 00:33:49 +0000 |
---|---|---|
committer | Paul Gilbert | 2009-05-16 00:33:49 +0000 |
commit | c3cf7420bd097df594b1d278091bdfe4acea2cdc (patch) | |
tree | 319e46d25e0da03a65ac1df87aafadfa8a972845 /engines | |
parent | 340b5b93784ddf05b205ef5dc2f1120204c70743 (diff) | |
download | scummvm-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')
-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; |