TSAGE: Fix CID 1003170

This commit is contained in:
Strangerke 2013-10-29 08:18:36 +01:00
parent acc49e9fe9
commit c00ff935de

View File

@ -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];