mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 00:41:12 +00:00
TSAGE: Fix a bug pointed by wjp
This commit is contained in:
parent
22df279adc
commit
a3c937c556
@ -860,7 +860,7 @@ void PlayerMover::doStepsOfNpcMovement(const Common::Point &srcPos, const Common
|
|||||||
int PlayerMover::calculateRestOfRoute(int *routeList, int srcRegion, int destRegion, bool &foundRoute) {
|
int PlayerMover::calculateRestOfRoute(int *routeList, int srcRegion, int destRegion, bool &foundRoute) {
|
||||||
// Make a copy of the provided route. The first entry is the size.
|
// Make a copy of the provided route. The first entry is the size.
|
||||||
int tempList[REGION_LIST_SIZE + 1];
|
int tempList[REGION_LIST_SIZE + 1];
|
||||||
memset(tempList, 0, REGION_LIST_SIZE + 1);
|
memset(tempList, 0, sizeof(tempList));
|
||||||
|
|
||||||
foundRoute = false;
|
foundRoute = false;
|
||||||
for (int idx = 0; idx <= *routeList; ++idx)
|
for (int idx = 0; idx <= *routeList; ++idx)
|
||||||
|
Loading…
Reference in New Issue
Block a user