From 7c3dd3f59fbcd28372b3ae4e2001c41fe7dff073 Mon Sep 17 00:00:00 2001 From: Staykeu <79605233+Staykeu@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:37:21 -0500 Subject: [PATCH] Update code/modules/clothing/glasses/glasses.dm Co-authored-by: Drathek <76988376+Drulikar@users.noreply.github.com> --- code/modules/clothing/glasses/glasses.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/clothing/glasses/glasses.dm b/code/modules/clothing/glasses/glasses.dm index b5345795644e..eee4fc5a0662 100644 --- a/code/modules/clothing/glasses/glasses.dm +++ b/code/modules/clothing/glasses/glasses.dm @@ -94,6 +94,8 @@ var/obj/item/clothing/glasses/offhand = user.get_inactive_hand() if(istype(offhand) && !offhand.prescription) if(tgui_alert(user, "Do you wish to take out the prescription lenses and put them in [offhand]?", "Insert Prescription Lenses", list("Yes", "No")) == "Yes") + if(QDELETED(src) || offhand != user.get_inactive_hand()) + return FALSE if(QDELETED(src) || offhand != user.get_inactive_hand()) return FALSE offhand.prescription = TRUE