From 4d3e22d26e06e2bb8298798671cbeb177a210ee8 Mon Sep 17 00:00:00 2001 From: Dmitry Openkov Date: Thu, 14 Apr 2022 18:46:46 +0300 Subject: [PATCH] Fixed availableVehicles disappearing when the person is not at home. --- .../agentsim/agents/household/HouseholdFleetManager.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/beam/agentsim/agents/household/HouseholdFleetManager.scala b/src/main/scala/beam/agentsim/agents/household/HouseholdFleetManager.scala index 1f39666be49..bf92ad135e1 100644 --- a/src/main/scala/beam/agentsim/agents/household/HouseholdFleetManager.scala +++ b/src/main/scala/beam/agentsim/agents/household/HouseholdFleetManager.scala @@ -152,7 +152,7 @@ class HouseholdFleetManager( rest case _ => logger.error(s"THE LIST OF VEHICLES SHOULDN'T BE EMPTY") - Nil + availableVehicles } } } @@ -168,7 +168,7 @@ class HouseholdFleetManager( case _ => logger.debug(s"Not returning vehicle because no default is defined or agent is not at home") sender() ! MobilityStatusResponse(Vector(), triggerId) - Nil + availableVehicles } }