Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 2d48bff

Browse files
fix a runtime that was bugging me on localhost
1 parent e4e5ba6 commit 2d48bff

File tree

1 file changed

+6
-2
lines changed
  • code/modules/mob/living/simple_animal/bot

1 file changed

+6
-2
lines changed

code/modules/mob/living/simple_animal/bot/mulebot.dm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,13 @@
6767
suffix = null
6868

6969
/mob/living/simple_animal/bot/mulebot/Destroy()
70+
if(!isnull(wires))
71+
QDEL_NULL(wires)
7072
unload(0)
71-
qdel(wires)
72-
wires = null
73+
return ..()
74+
75+
/mob/living/simple_animal/bot/mulebot/death(gibbed)
76+
QDEL_NULL(wires)
7377
return ..()
7478

7579
/mob/living/simple_animal/bot/mulebot/proc/set_id(new_id)

0 commit comments

Comments
 (0)