diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-04 02:29:06 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-04 02:29:06 +0000 |
commit | 683dbd2fad6c911b279e87f03ec8a6d0a17a435d (patch) | |
tree | 557f00ec9fe0b487dd29f5d51f50de880c66121d /src/map/homunculus.c | |
parent | 9948c02946e55229d5c9951ab9aaec3184611734 (diff) | |
download | hercules-683dbd2fad6c911b279e87f03ec8a6d0a17a435d.tar.gz hercules-683dbd2fad6c911b279e87f03ec8a6d0a17a435d.tar.bz2 hercules-683dbd2fad6c911b279e87f03ec8a6d0a17a435d.tar.xz hercules-683dbd2fad6c911b279e87f03ec8a6d0a17a435d.zip |
Pets & Homun renaming with empty name fix, bugreport:3032
Also:
- Fixed client crash when sending weapon + dragon/mado/newmount
- Fixed 2011-11-16 charinfo_size bug on char selection screen
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15377 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/homunculus.c')
-rw-r--r-- | src/map/homunculus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/homunculus.c b/src/map/homunculus.c index 50b7c2c7a..f5d3dbcd5 100644 --- a/src/map/homunculus.c +++ b/src/map/homunculus.c @@ -555,7 +555,10 @@ int merc_hom_change_name_ack(struct map_session_data *sd, char* name, int flag) { struct homun_data *hd = sd->hd; if (!merc_is_hom_active(hd)) return 0; - if (!flag) { + + normalize_name(name," ");//bugreport:3032 + + if ( !flag || !strlen(name) ) { clif_displaymessage(sd->fd, msg_txt(280)); // You cannot use this name return 0; } |