summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-14 20:33:08 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-14 20:33:08 -0300
commit5f1bf020c53e714204cbade17f14e69117a907dc (patch)
treeae0bfbf1a884554848b1dd1eb37ced423b81d346
parent723846089c2263da0c7ff5688bdb73675b05ac9c (diff)
downloadplugin-5f1bf020c53e714204cbade17f14e69117a907dc.tar.gz
plugin-5f1bf020c53e714204cbade17f14e69117a907dc.tar.bz2
plugin-5f1bf020c53e714204cbade17f14e69117a907dc.tar.xz
plugin-5f1bf020c53e714204cbade17f14e69117a907dc.zip
But gcc is fine with this implicit conversion... :roll_eyes:
-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 7bcd11a..89d835f 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2366,8 +2366,8 @@ BUILDIN(getguildinfo)
{
mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_lvl"), guild_id),g->guild_lv);
mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_avg"), guild_id),g->average_lv);
- mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_exp"), guild_id),g->exp);
- mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_nxp"), guild_id),g->next_exp);
+ mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_exp"), guild_id), (int)(g->exp));
+ mapreg->setreg(reference_uid(script->add_variable("$@guildinfo_nxp"), guild_id), (int)(g->next_exp));
}
else
{