summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-08 16:28:46 -0300
committerpanikon <panikon@zoho.com>2014-07-08 16:28:46 -0300
commitd1d99a96485a164f850e09c2fff6d0c30657ea9e (patch)
tree58265553753580a2cfde36c919b8d37262d485f3 /src/map/clif.c
parent36712df4cf1f7fbc1a78eb4a7afee1630fa4c4be (diff)
downloadhercules-d1d99a96485a164f850e09c2fff6d0c30657ea9e.tar.gz
hercules-d1d99a96485a164f850e09c2fff6d0c30657ea9e.tar.bz2
hercules-d1d99a96485a164f850e09c2fff6d0c30657ea9e.tar.xz
hercules-d1d99a96485a164f850e09c2fff6d0c30657ea9e.zip
Removed redundant data from guardian_data, saving up to 40 bytes per guardian (10240 bytes total)
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index d8714dda0..bc3e0ce9f 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8602,11 +8602,11 @@ void clif_charnameack (int fd, struct block_list *bl)
nullpo_retv(md);
memcpy(WBUFP(buf,6), md->name, NAME_LENGTH);
- if( md->guardian_data && md->guardian_data->guild_id )
+ if( md->guardian_data && md->guardian_data->g )
{
WBUFW(buf, 0) = cmd = 0x195;
WBUFB(buf,30) = 0;
- memcpy(WBUFP(buf,54), md->guardian_data->guild_name, NAME_LENGTH);
+ memcpy(WBUFP(buf,54), md->guardian_data->g->name, NAME_LENGTH);
memcpy(WBUFP(buf,78), md->guardian_data->castle->castle_name, NAME_LENGTH);
}
else if( battle_config.show_mob_info )