diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-10-20 18:22:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-10-20 18:22:47 -0300 |
commit | f8d8b072fcba2678f40e13947b1e621b0ffde262 (patch) | |
tree | 6061eb1c0ebb546b515f9e51b944cdb85c3b93d4 | |
parent | ac99a4feddd940a73509eebb966a93fa1bf1b7ff (diff) | |
download | evol-hercules-f8d8b072fcba2678f40e13947b1e621b0ffde262.tar.gz evol-hercules-f8d8b072fcba2678f40e13947b1e621b0ffde262.tar.bz2 evol-hercules-f8d8b072fcba2678f40e13947b1e621b0ffde262.tar.xz evol-hercules-f8d8b072fcba2678f40e13947b1e621b0ffde262.zip |
Fix the broken function
-rw-r--r-- | src/emap/script_buildins.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 8864920..b801305 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -2643,21 +2643,15 @@ BUILDIN(getguildpostax) *------------------------------------------*/ BUILDIN(getguildpostitle) { - ShowError("getguildpostitle is NOT working - Or rather, it is, but with a free error. So DO NOT USE.\n"); - script_pushstr(st,"NotYetImplemented"); - return true; - int guild_id, gpos; struct guild* g; - char* pname; guild_id = script_getnum(st,2); gpos = script_getnum(st,3); if( ( g = guild->search(guild_id) ) != NULL ) { - pname=g->position[gpos].name; - script_pushstr(st, pname); + script_pushstrcopy(st, g->position[gpos].name); } else { |