Skip to content

Commit

Permalink
Update abstract.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eleurent committed Sep 4, 2020
1 parent 6fd19a3 commit 0e9d114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highway_env/envs/common/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def set_vehicle_field(self, args: Tuple[str, object]) -> 'AbstractEnv':
field, value = args
env_copy = copy.deepcopy(self)
for v in env_copy.road.vehicles:
if isinstance(v, LinearVehicle):
if v is not self.vehicle:
setattr(v, field, value)
return env_copy

Expand Down

0 comments on commit 0e9d114

Please sign in to comment.