locate textref.

This commit is contained in:
Ghommie
2020-03-09 22:27:27 +01:00
parent 0587d3482d
commit aa8dc93a5d
+1 -1
View File
@@ -67,7 +67,7 @@ GLOBAL_LIST_EMPTY(mobs_with_editable_flavor_text) //et tu, hacky code
if(.)
return
if(href_list["show_flavor"])
var/atom/target = href_list["show_flavor"]
var/atom/target = locate(href_list["show_flavor"])
var/text = texts_by_mob[target]
if(text)
usr << browse("<HTML><HEAD><TITLE>[target.name]</TITLE></HEAD><BODY><TT>[replacetext(texts_by_mob[target], "\n", "<BR>")]</TT></BODY></HTML>", "window=[target.name];size=500x200")