Skip to content

Commit

Permalink
Fix get_actor_group
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquegemignani committed Feb 12, 2022
1 parent 0f9b4f5 commit 98fa4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mercury_engine_data_structures/formats/brfld.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def all_actor_groups(self) -> Iterator[str]:
yield from self.raw.Root.pScenario.rEntitiesLayer.dctActorGroups.keys()

def get_actor_group(self, group_name: str) -> List[str]:
return self.raw.Root.pScenario.rEntitiesLayer[group_name]
return self.raw.Root.pScenario.rEntitiesLayer.dctActorGroups[group_name]

def is_actor_in_group(self, group_name: str, actor_name: str, layer_name: str = "default") -> bool:
return self.link_for_actor(actor_name, layer_name) in self.get_actor_group(group_name)
Expand Down

0 comments on commit 98fa4ca

Please sign in to comment.