summaryrefslogtreecommitdiff
path: root/src/char_sql/int_guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/int_guild.c')
-rw-r--r--src/char_sql/int_guild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c
index 9fd4453d0..b3da7ea91 100644
--- a/src/char_sql/int_guild.c
+++ b/src/char_sql/int_guild.c
@@ -157,7 +157,7 @@ int inter_guild_tosql(struct guild *g,int flag)
} else if (g->guild_id == -1) { //New guild
if(mysql_field_count(&mysql_handle) == 0 &&
mysql_insert_id(&mysql_handle) != 0)
- g->guild_id = mysql_insert_id(&mysql_handle);
+ g->guild_id = (int)mysql_insert_id(&mysql_handle);
else
return 0; //Failed to get ID??
}