diff --git a/src/commands/objmanip.py b/src/commands/objmanip.py index c47a23f39f..fbb0119a19 100644 --- a/src/commands/objmanip.py +++ b/src/commands/objmanip.py @@ -1292,7 +1292,7 @@ def cmd_destroy(command): switch_override = True for targetname in targetlist: - target_obj = source_object.search_for_object_global(targetname) + target_obj = source_object.search_for_object(targetname) # Use search_for_object to handle duplicate/nonexistant results. if not target_obj: return