From fdfdbb522f79d8daf3198f001d187f0b6c4dca21 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 16 Mar 2009 09:24:30 +0000 Subject: 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 --- 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 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; } -- cgit v1.2.3-70-g09d2