diff --git a/example/cbs.cpp b/example/cbs.cpp index 1bdb3d0b..b7fb7714 100644 --- a/example/cbs.cpp +++ b/example/cbs.cpp @@ -430,7 +430,7 @@ class Environment { // This is a trick to avoid changing the rest of the code significantly // After an agent disappeared, put it at a unique but invalid position // This will cause all calls to equalExceptTime(.) to return false. - return State(-1 * agentIdx, -1, -1); + return State(-1, -1 * (agentIdx + 1), -1); } return solution[agentIdx].states.back().first; } diff --git a/example/ecbs.cpp b/example/ecbs.cpp index 268336ae..6480abf5 100644 --- a/example/ecbs.cpp +++ b/example/ecbs.cpp @@ -498,7 +498,7 @@ class Environment { // This is a trick to avoid changing the rest of the code significantly // After an agent disappeared, put it at a unique but invalid position // This will cause all calls to equalExceptTime(.) to return false. - return State(-1 * agentIdx, -1, -1); + return State(-1, -1 * (agentIdx+1), -1); } return solution[agentIdx].states.back().first; }