Commit f6b3878c authored by VAN TOLL Wouter's avatar VAN TOLL Wouter
Browse files

Bugfix in WorldInfinite::ComputeNeighbors().

parent 9a3d272a
......@@ -41,7 +41,7 @@ NeighborList WorldInfinite::ComputeNeighbors(const Vector2D& position, float sea
Vector2D offset(0, 0);
for (size_t i = 0; i < agents.size(); ++i)
phantoms.push_back(PhantomAgent(agents[i], position, offset));
phantoms[i] = PhantomAgent(agents[i], position, offset);
// compute neighboring obstacles
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment