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

Commit 433cc45

Browse files
committed
fix this other bug too
1 parent 3b3ad5e commit 433cc45

File tree

1 file changed

+4
-1
lines changed
  • yogstation/code/game/objects/items/fishing

1 file changed

+4
-1
lines changed

yogstation/code/game/objects/items/fishing/fish.dm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@
4949
span_notice("You show off [src]. It's [length] inch[length > 1 ? "es" : ""] long and weighs [weight] ounce[weight > 1 ? "s" : ""]!"))
5050
RegisterSignal(M,COMSIG_ATOM_DIR_CHANGE, PROC_REF(stop_overlay),TRUE)
5151
RegisterSignal(src, COMSIG_PREQDELETED, PROC_REF(stop_overlay))
52+
RegisterSignal(src, COMSIG_MOVABLE_PRE_MOVE, PROC_REF(stop_overlay))
5253

5354
/obj/item/reagent_containers/food/snacks/fish/proc/stop_overlay()
5455
if(showoffer && showoff_overlay)
55-
UnregisterSignal(showoffer,COMSIG_ATOM_DIR_CHANGE)
56+
UnregisterSignal(showoffer, COMSIG_ATOM_DIR_CHANGE)
57+
UnregisterSignal(src, COMSIG_PREQDELETED)
58+
UnregisterSignal(src, COMSIG_MOVABLE_PRE_MOVE)
5659
showoffer.cut_overlay(showoff_overlay)
5760
showoffer = null
5861
showoff_overlay = null

0 commit comments

Comments
 (0)