Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Directly access self.inventroy.haves[good]
Browse files Browse the repository at this point in the history
  • Loading branch information
DavoudTaghawiNejad committed Sep 11, 2017
1 parent 641bae4 commit 1c06264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abce/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _send(self, receiver_group, receiver_id, typ, msg):
(receiver_group, receiver_id, (typ, msg)))

def __getitem__(self, good):
return self._inventory[good]
return self._inventory.haves[good]

def __del__(self):
self._check_for_lost_messages()

0 comments on commit 1c06264

Please sign in to comment.