diff options
author | Strangerke | 2013-10-30 21:40:54 +0100 |
---|---|---|
committer | Strangerke | 2013-10-30 22:44:02 +0100 |
commit | a3c937c556ce28a403b4fa10d58be129dae6aa73 (patch) | |
tree | d89858900b4f3cba33d6f76fdc88bc3d232efa4c | |
parent | 22df279adc710294e69b1c9b44df56673489121d (diff) | |
download | scummvm-rg350-a3c937c556ce28a403b4fa10d58be129dae6aa73.tar.gz scummvm-rg350-a3c937c556ce28a403b4fa10d58be129dae6aa73.tar.bz2 scummvm-rg350-a3c937c556ce28a403b4fa10d58be129dae6aa73.zip |
TSAGE: Fix a bug pointed by wjp
-rw-r--r-- | engines/tsage/core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 424df164b2..e703b714b2 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -860,7 +860,7 @@ 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); + memset(tempList, 0, sizeof(tempList)); foundRoute = false; for (int idx = 0; idx <= *routeList; ++idx) |