Skip to content

Commit 643bf26

Browse files
authored
Merge pull request #9 from roborescue/agentID-equality-fix-to-filter-agents'-own-messages
AgentID equality fix
2 parents 211a9a7 + 9603367 commit 643bf26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/adf/agent/communication/standard/StandardCommunicationModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void receive(@Nonnull Agent agent, @Nonnull MessageManager messageManager
3333
if (heard instanceof AKSpeak) {
3434
EntityID senderID = heard.getAgentID();
3535

36-
if (agent.getID() == senderID) {
36+
if (agent.getID().equals(senderID)) {
3737
continue;
3838
}
3939

0 commit comments

Comments
 (0)