mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fix more Destroy / GC issues.
Fixes recursive Destroy call on containment field. Fix unable to GC issue on air alarms. Fix unable to GC issue on radiation sources.
This commit is contained in:
@@ -18,7 +18,7 @@ var/global/repository/radiation/radiation_repository = new()
|
||||
/datum/radiation_source/Destroy()
|
||||
radiation_repository.sources -= src
|
||||
if(radiation_repository.sources_assoc[src.source_turf] == src)
|
||||
radiation_repository.sources -= src.source_turf
|
||||
radiation_repository.sources_assoc -= src.source_turf
|
||||
src.source_turf = null
|
||||
. = ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user