Merge pull request #7554 from SamHPurp/more-qdel-nulls

Uses more QDEL_NULLs
This commit is contained in:
Fox McCloud
2017-06-19 21:14:39 -04:00
committed by GitHub
34 changed files with 70 additions and 137 deletions
+1 -2
View File
@@ -377,8 +377,7 @@
user.visible_message(user, "<span class='warning'>[user] is drilling through the [src]'s lock!</span>",
"<span class='notice'>You start drilling through the [src]'s lock!</span>")
if(do_after(user, 100 * W.toolspeed, target = src))
qdel(equipment_system.lock_system)
equipment_system.lock_system = null
QDEL_NULL(equipment_system.lock_system)
user.visible_message(user, "<span class='warning'>[user] has destroyed the [src]'s lock!</span>",
"<span class='notice'>You destroy the [src]'s lock!</span>")
else