HomeWildfire Games

Fix issues with MakeGoalReachable when the goal wasn't reachable following…

Description

Fix issues with MakeGoalReachable when the goal wasn't reachable following D1882/rP22817

This fixes the issue and adds a regression test.

Differential Revision: https://code.wildfiregames.com/D2277

Event Timeline

ERROR: JavaScript error: simulation/ai/common-api/map-module.js line 44
TypeError: p is undefined

at turn 1092 in replay (SVN 22882).
Not sure but it might be introduced here?

elexis added a subscriber: elexis.Sep 10 2019, 11:20 AM

Fixed issue reported by faction02 in a forum PM and analyzed by Freagarach, thank you!!
https://wildfiregames.com/forum/index.php?/messenger/10014/

I think @wraitii found this by himself?

I think @wraitii found this by himself?

I did, but it was prompted by faction02's PM. I should have credited him, but at the moment of writing the commit message it slipped my mind as it was not in the diff.