Replace most islist calls in components with length() (#32158)
islist was used to check if a thing was A. A list of things B. 1 thing length was profiled to be faster
This commit is contained in:
committed by
CitadelStationBot
parent
31e2303e39
commit
55653fa1ee
@@ -24,7 +24,7 @@
|
||||
var/list/dc = datum_components
|
||||
if(dc)
|
||||
var/all_components = dc[/datum/component]
|
||||
if(islist(all_components))
|
||||
if(length(all_components))
|
||||
for(var/I in all_components)
|
||||
var/datum/component/C = I
|
||||
C._RemoveFromParent()
|
||||
|
||||
Reference in New Issue
Block a user