From 3fcc90585e1dd0feae584dddc0918f4849905ebb Mon Sep 17 00:00:00 2001 From: Jacopo Bartiromo Date: Thu, 16 Apr 2020 11:28:24 +0200 Subject: [PATCH] fixes destruction of actors in tutorial.py --- PythonAPI/examples/tutorial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonAPI/examples/tutorial.py b/PythonAPI/examples/tutorial.py index aa67b5cac..de6f7aaab 100755 --- a/PythonAPI/examples/tutorial.py +++ b/PythonAPI/examples/tutorial.py @@ -118,8 +118,8 @@ def main(): finally: print('destroying actors') - for actor in actor_list: - actor.destroy() + camera.destroy() + client.apply_batch([carla.command.DestroyActor(x) for x in actor_list]) print('done.')