소스 검색

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