From a40e59d2c79e776a8025210cbc4a67bd1ef0ef2b Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 16 Mar 2009 09:24:30 +0000 Subject: [PATCH] Fixed a logic typo in one empty string check (from r4823). git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13584 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/intif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/intif.c b/src/map/intif.c index 7130f28208..c01a54ed8e 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; }