Ver código fonte

clarification

Snej69420 4 meses atrás
pai
commit
f288e5dc44
1 arquivos alterados com 3 adições e 0 exclusões
  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