mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Converts Most Destroys to use QDEL_NULL
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
var/locked = FALSE
|
||||
|
||||
/obj/item/weapon/computer_hardware/ai_slot/Destroy()
|
||||
if(stored_card)
|
||||
qdel(stored_card)
|
||||
stored_card = null
|
||||
QDEL_NULL(stored_card)
|
||||
return ..()
|
||||
|
||||
|
||||
|
||||
@@ -14,9 +14,7 @@
|
||||
..()
|
||||
|
||||
/obj/item/weapon/computer_hardware/battery/Destroy()
|
||||
if(battery)
|
||||
qdel(battery)
|
||||
battery = null
|
||||
QDEL_NULL(battery)
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/computer_hardware/battery/on_remove(obj/item/device/modular_computer/M, mob/living/user = null)
|
||||
|
||||
@@ -11,12 +11,8 @@
|
||||
var/obj/item/weapon/card/id/stored_card2 = null
|
||||
|
||||
/obj/item/weapon/computer_hardware/card_slot/Destroy()
|
||||
if(stored_card)
|
||||
qdel(stored_card)
|
||||
stored_card = null
|
||||
if(stored_card2)
|
||||
qdel(stored_card2)
|
||||
stored_card2 = null
|
||||
QDEL_NULL(stored_card)
|
||||
QDEL_NULL(stored_card2)
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/computer_hardware/card_slot/GetAccess()
|
||||
|
||||
Reference in New Issue
Block a user