mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixes some to_chat runtimes (#23932)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user