diff options
author | Andrew Kurushin | 2005-04-27 11:51:11 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-04-27 11:51:11 +0000 |
commit | 2c012197910972fc5a16a3316b21b2b4ad7d8687 (patch) | |
tree | c3e65796e43ed65fe831b61521dfac29287a1f84 /saga/isomap.cpp | |
parent | 7c11e68db351c9901e85cfc76ec934adc1048c7b (diff) | |
download | scummvm-rg350-2c012197910972fc5a16a3316b21b2b4ad7d8687.tar.gz scummvm-rg350-2c012197910972fc5a16a3316b21b2b4ad7d8687.tar.bz2 scummvm-rg350-2c012197910972fc5a16a3316b21b2b4ad7d8687.zip |
some load-save preparetion
svn-id: r17836
Diffstat (limited to 'saga/isomap.cpp')
-rw-r--r-- | saga/isomap.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/saga/isomap.cpp b/saga/isomap.cpp index 7b0a3b4ee4..8a3e90a8c5 100644 --- a/saga/isomap.cpp +++ b/saga/isomap.cpp @@ -1337,11 +1337,8 @@ void IsoMap::findTilePath(ActorData* actor, const Location &start, const Locatio i = 64; }*/ actor->walkStepsCount = i; - if (i) { - if (actor->tileDirectionsAlloced < i) { - actor->tileDirectionsAlloced = i; - actor->tileDirections = (byte*)realloc(actor->tileDirections, actor->tileDirectionsAlloced * sizeof(*actor->tileDirections)); - } + if (i) { + actor->setTileDirectionsSize(i, false); memcpy(actor->tileDirections, res, i ); } } |