ソースを参照

clarification

Snej69420 4 ヶ月 前
親
コミット
f288e5dc44
1 ファイル変更、3 行追加、0 行削除
  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