diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-12 22:16:15 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-12 22:16:15 +0100 |
commit | 3d7d740a22d2b52d708709ebdd47f7e05f527f5f (patch) | |
tree | 44af36bfcc4340bdac0bee9abe57bce46c87dad0 /src/map/script.c | |
parent | 2764e41addcb28863a6d9de5b0407eba9855fa77 (diff) | |
download | hercules-3d7d740a22d2b52d708709ebdd47f7e05f527f5f.tar.gz hercules-3d7d740a22d2b52d708709ebdd47f7e05f527f5f.tar.bz2 hercules-3d7d740a22d2b52d708709ebdd47f7e05f527f5f.tar.xz hercules-3d7d740a22d2b52d708709ebdd47f7e05f527f5f.zip |
Use script_pushstrcopy() instead of script_pushstr() for returning item names
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |