Fixes heap corruption in Map::findPath #469