From a3c937c556ce28a403b4fa10d58be129dae6aa73 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 30 Oct 2013 21:40:54 +0100 Subject: [PATCH] TSAGE: Fix a bug pointed by wjp --- engines/tsage/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index 424df164b23..e703b714b2d 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)