aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/core.cpp
diff options
context:
space:
mode:
authorStrangerke2013-10-29 08:18:36 +0100
committerStrangerke2013-10-29 08:18:36 +0100
commitc00ff935de452fa32feaab89b5c1c584e5722044 (patch)
treebf24602890b2d345e5686c5f35f6d6e65c224392 /engines/tsage/core.cpp
parentacc49e9fe9b80985e5715ff62e33e4752557b076 (diff)
downloadscummvm-rg350-c00ff935de452fa32feaab89b5c1c584e5722044.tar.gz
scummvm-rg350-c00ff935de452fa32feaab89b5c1c584e5722044.tar.bz2
scummvm-rg350-c00ff935de452fa32feaab89b5c1c584e5722044.zip
TSAGE: Fix CID 1003170
Diffstat (limited to 'engines/tsage/core.cpp')
-rw-r--r--engines/tsage/core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index 8021160514..424df164b2 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -860,6 +860,8 @@ void PlayerMover::doStepsOfNpcMovement(const Common::Point &srcPos, const Common
int PlayerMover::calculateRestOfRoute(int *routeList, int srcRegion, int destRegion, bool &foundRoute) {
// Make a copy of the provided route. The first entry is the size.
int tempList[REGION_LIST_SIZE + 1];
+ memset(tempList, 0, REGION_LIST_SIZE + 1);
+
foundRoute = false;
for (int idx = 0; idx <= *routeList; ++idx)
tempList[idx] = routeList[idx];