Skip to content

Commit

Permalink
Solve critical loc visit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
djgroen committed Jan 22, 2024
1 parent 2989b1a commit 654d1e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions facs/base/person.py
Expand Up @@ -170,6 +170,10 @@ def plan_visits(self, e):
else:
location_to_visit = random.choice(location_to_visit)

# Register the actual visit to the location.
location_to_visit.register_visit(e, self, minutes)


def print_needs(self):
"""Print the needs of a person."""
print(self.age, needs.get_needs(self))
Expand Down

0 comments on commit 654d1e4

Please sign in to comment.