Procházet zdrojové kódy

Fixes title selection in ui window (#2662)

* Fixes #2660
* Thanks to @hnomkeng
sader fawall před 7 roky
rodič
revize
4dde4c664b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/map/clif.cpp

+ 1 - 1
src/map/clif.cpp

@@ -19032,7 +19032,7 @@ void clif_parse_change_title(int fd, struct map_session_data *sd)
 	}else if( title_id <= 0 ){
 		sd->status.title_id = 0;
 	}else{
-		if (std::find(sd->titles.begin(), sd->titles.end(), title_id) != sd->titles.end()) {
+		if (std::find(sd->titles.begin(), sd->titles.end(), title_id) == sd->titles.end()) {
 			clif_change_title_ack(sd, 1, title_id);
 			return;
 		}