diff options
author | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-29 21:16:05 +0000 |
---|---|---|
committer | amber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-29 21:16:05 +0000 |
commit | 6fd1aaa92666b6097d6e480741490de28795a833 (patch) | |
tree | 8f1609e6f6be8a462f1ee4dba87efcad8bc6f046 /src/map/pet.c | |
parent | ab0a9edc2f5754c4f778c008caff1682d43d65eb (diff) | |
download | hercules-6fd1aaa92666b6097d6e480741490de28795a833.tar.gz hercules-6fd1aaa92666b6097d6e480741490de28795a833.tar.bz2 hercules-6fd1aaa92666b6097d6e480741490de28795a833.tar.xz hercules-6fd1aaa92666b6097d6e480741490de28795a833.zip |
update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@863 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pet.c')
-rw-r--r-- | src/map/pet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pet.c b/src/map/pet.c index 3c87a91e5..545cc079f 100644 --- a/src/map/pet.c +++ b/src/map/pet.c @@ -955,7 +955,7 @@ int pet_change_name(struct map_session_data *sd,char *name) nullpo_retr(1, sd); - if(sd->pet.rename_flag == 1 && battle_config.pet_rename == 0) + if((sd->pd == NULL) || (sd->pet.rename_flag == 1 && battle_config.pet_rename == 0)) return 1; for(i=0;i<24 && name[i];i++){ |