From 3d7d740a22d2b52d708709ebdd47f7e05f527f5f Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Thu, 12 Mar 2020 22:16:15 +0100 Subject: Use script_pushstrcopy() instead of script_pushstr() for returning item names --- src/map/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map') diff --git a/src/map/script.c b/src/map/script.c index b8a7979a7..c644e9b75 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14952,10 +14952,10 @@ static BUILDIN(getiteminfo) script_pushint(st, it->nameid); break; case ITEMINFO_AEGISNAME: - script_pushstr(st, it->name); + script_pushstrcopy(st, it->name); break; case ITEMINFO_NAME: - script_pushstr(st, it->jname); + script_pushstrcopy(st, it->jname); break; default: ShowError("buildin_getiteminfo: Invalid item info type %d.\n", type); -- cgit v1.2.3-70-g09d2