Skip to content
Snippets Groups Projects
Commit d2868198 authored by Martins Mozeiko's avatar Martins Mozeiko
Browse files

Instantiate correct vehicle for simulation

parent fb9e4399
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ namespace Simulator
{
Instance.SimConfig.Agents = simulation.Vehicles.Select(v =>
{
var vehicle = db.SingleOrDefault<VehicleModel>(v.Id);
var vehicle = db.SingleOrDefault<VehicleModel>(v.Vehicle);
var config = new AgentConfig()
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment