makes cameras get properly dropped from the cameranet on destroy (#26613)

This commit is contained in:
chuga-git
2024-08-28 23:54:56 +00:00
committed by GitHub
parent 47b77f664e
commit 3f01a97807
+1
View File
@@ -72,6 +72,7 @@
kick_out_watchers()
QDEL_NULL(assembly)
QDEL_NULL(wires)
GLOB.cameranet.removeCamera(src)
GLOB.cameranet.cameras -= src
var/area/our_area = get_area(src)
if(our_area) // We should probably send out the warning alarms if this doesn't exist, because this should always have an area!