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
This commit is contained in:
parent
5ec23576c6
commit
a40e59d2c7
@ -293,7 +293,7 @@ int intif_saveregistry(struct map_session_data *sd, int type)
|
|||||||
WFIFOL(inter_fd,8)=sd->status.char_id;
|
WFIFOL(inter_fd,8)=sd->status.char_id;
|
||||||
WFIFOB(inter_fd,12)=type;
|
WFIFOB(inter_fd,12)=type;
|
||||||
for( p = 13, i = 0; i < count; i++ ) {
|
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].str)+1; //We add 1 to consider the '\0' in place.
|
||||||
p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].value)+1;
|
p+= sprintf((char*)WFIFOP(inter_fd,p), "%s", reg[i].value)+1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user