summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt1
-rw-r--r--src/char/int_guild.c2
-rw-r--r--src/char_sql/int_guild.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 772610550..afdfb1b3a 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
12/27
+ * Corrected wrong logging of text in int_guild.c, thanks to Alex14 [celest]
* Summoned monsters will not give exp and items [celest]
* Added the 6 new Yuno fields to maps_athena.conf [celest]
* Added some Freya's optimisations in clif_parse [celest]
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 3229453f8..dbd7ee615 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -1369,7 +1369,7 @@ int mapif_parse_GuildCastleDataSave(int fd, int castle_id, int index, int value)
struct guild *g = numdb_search(guild_db, gid);
if(log_inter)
inter_log("guild %s (id=%d) %s castle id=%d" RETCODE,
- (g) ? g->name : "??", gid, (value) ? "occupy" : "abandon", index);
+ (g) ? g->name : "??", gid, (value) ? "occupy" : "abandon", castle_id);
}
gc->guild_id = value;
break;
diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c
index dedabfab7..8e1fb5d6d 100644
--- a/src/char_sql/int_guild.c
+++ b/src/char_sql/int_guild.c
@@ -1583,7 +1583,7 @@ int mapif_parse_GuildCastleDataSave(int fd,int castle_id,int index,int value)
struct guild *g=inter_guild_fromsql(gid);
if(log_inter)
inter_log("guild %s (id=%d) %s castle id=%d" RETCODE,
- (g)?g->name:"??" ,gid, (value)?"occupy":"abandon", index);
+ (g)?g->name:"??" ,gid, (value)?"occupy":"abandon", castle_id);
}
gc->guild_id = value;
break;