fix null owner (#60928) (#7728)

Co-authored-by: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-08-24 04:35:09 +02:00
committed by GitHub
parent c9ffc7a122
commit 6fed8a8f52
2 changed files with 8 additions and 2 deletions
@@ -39,10 +39,13 @@
club.update_appearance()
current_charges = clamp(current_charges + 1, 0, max_charges)
owner.update_action_buttons_icon()
if(recharge_sound)
playsound(dashing_item, recharge_sound, 50, TRUE)
if(!owner)
return
owner.update_action_buttons_icon()
to_chat(owner, span_notice("[src] now has [current_charges]/[max_charges] charges."))
/obj/item/hierophant_club