Fixes some to_chat runtimes (#23932)

This commit is contained in:
GDN
2024-01-28 13:24:47 +00:00
committed by GitHub
parent 1c92bdaa5e
commit 33a549eb6d
4 changed files with 7 additions and 12 deletions
@@ -59,10 +59,11 @@
if(!selection)
return
var/obj/item/photo/P = new/obj/item/photo()
var/obj/item/photo/P = new /obj/item/photo()
P.construct(selection)
P.show(usr)
to_chat(usr, P.desc)
if(P.desc)
to_chat(usr, P.desc, MESSAGE_TYPE_INFO)
// TG uses a special garbage collector.. qdel(P)
qdel(P) //so 10 thousand pictures items are not left in memory should an AI take them and then view them all.