mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 07:48:58 +00:00
TSAGE: Fix CID 1003170
This commit is contained in:
parent
acc49e9fe9
commit
c00ff935de
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user