Преглед на файлове

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
ultramage преди 16 години
родител
ревизия
a40e59d2c7
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/map/intif.c

+ 1 - 1
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;
 		}