summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-10 01:24:34 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-10 01:24:34 -0300
commit122ef2416a7ee34d3ce28d38828e01908e6a5951 (patch)
tree38f710ebc0dfca0a194c07743377aae5a7ac9e5f
parentcff6a8bbfc1fa385c34654d0342e4200c349dcd6 (diff)
downloadplugin-jesusalva/guildpos.tar.gz
plugin-jesusalva/guildpos.tar.bz2
plugin-jesusalva/guildpos.tar.xz
plugin-jesusalva/guildpos.zip
Fix so it compilesjesusalva/guildpos
-rw-r--r--src/emap/script_buildins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index c8ae6c7..848aacc 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2357,7 +2357,7 @@ BUILDIN(isInstance)
*------------------------------------------*/
BUILDIN(getguildposinfo)
{
- int guild_id, gpos;
+ int gpos;
struct guild* g;
enum guildposinfo_type type = script_getnum(st, 2);
@@ -2366,7 +2366,7 @@ BUILDIN(getguildposinfo)
if (script_hasdata(st, 4)) {
if (script_isstringtype(st, 4)) {
const char *guild_name = script_getstr(st, 4);
- g = guild->searchname(guild_name);
+ g = guild->searchname((char*)(guild_name));
} else {
int guild_id = script_getnum(st, 4);
g = guild->search(guild_id);