Ver Fonte

Fixed a compiler warning in pc.cpp (#4601)

fix warning C4804: '>': unsafe use of type 'bool' in operation
userid0 há 5 anos atrás
pai
commit
f76bc09fbe
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/map/pc.cpp

+ 2 - 2
src/map/pc.cpp

@@ -9753,9 +9753,9 @@ bool pc_setreg2(struct map_session_data *sd, const char *reg, int64 val) {
 		case '@':
 			return pc_setreg(sd, add_str(reg), val);
 		case '#':
-			return (reg[1] == '#') ? pc_setaccountreg2(sd, add_str(reg), val) > 0 : pc_setaccountreg(sd, add_str(reg), val) > 0;
+			return (reg[1] == '#') ? pc_setaccountreg2(sd, add_str(reg), val) : pc_setaccountreg(sd, add_str(reg), val);
 		default:
-			return pc_setglobalreg(sd, add_str(reg), val) > 0;
+			return pc_setglobalreg(sd, add_str(reg), val);
 	}
 
 	return false;