From f8d8b072fcba2678f40e13947b1e621b0ffde262 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 20 Oct 2019 18:22:47 -0300 Subject: Fix the broken function --- src/emap/script_buildins.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-70-g09d2