diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-16 09:24:30 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-03-16 09:24:30 +0000 |
commit | fdfdbb522f79d8daf3198f001d187f0b6c4dca21 (patch) | |
tree | 095169c0c361ed184d47d6b3ed80d83064c746c1 /src/map/intif.c | |
parent | 07a0d9df45cd79bc0b3d4ae09f63ae9ca2522af6 (diff) | |
download | hercules-fdfdbb522f79d8daf3198f001d187f0b6c4dca21.tar.gz hercules-fdfdbb522f79d8daf3198f001d187f0b6c4dca21.tar.bz2 hercules-fdfdbb522f79d8daf3198f001d187f0b6c4dca21.tar.xz hercules-fdfdbb522f79d8daf3198f001d187f0b6c4dca21.zip |
Fixed a logic typo in one empty string check (from r4823).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13584 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c index 7130f2820..c01a54ed8 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -293,7 +293,7 @@ int intif_saveregistry(struct map_session_data *sd, int type) WFIFOL(inter_fd,8)=sd->status.char_id; WFIFOB(inter_fd,12)=type; for( p = 13, i = 0; i < count; i++ ) { - if (reg[i].str[0] && reg[i].value != 0) { + if (reg[i].str[0] != '\0' && reg[i].value[0] != '\0') { p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].str)+1; //We add 1 to consider the '\0' in place. p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].value)+1; } |