Browse Source

clarification

Snej69420 4 months ago
parent
commit
f288e5dc44
1 changed files with 3 additions and 0 deletions
  1. 3 0
      benchmarks/Agents/Intersection.jl

+ 3 - 0
benchmarks/Agents/Intersection.jl

@@ -26,6 +26,9 @@ function output!(agent::PoliceAgent, model)
     elseif agent.state == Directing
         msg = "Release Control"
     end
+    if msg == ""
+        return
+    end
     send_message!(agent, model, :out, msg)
 end