fix some runtimes and an overlay overflow (#15915)

* fix some runtimes and memleaks

* .
This commit is contained in:
Kashargul
2024-04-11 09:08:39 +10:00
committed by GitHub
parent 029cae3d27
commit 4c90f3953d
7 changed files with 29 additions and 23 deletions
+2
View File
@@ -163,6 +163,8 @@
page--
playsound(src, "pageturn", 50, 1)
if(href_list["remove"])
if(!pages.len)
return
var/obj/item/weapon/W = pages[page]
usr.put_in_hands(W)
pages.Remove(pages[page])