Fixes title selection in ui window (#2662)
* Fixes #2660 * Thanks to @hnomkeng
This commit is contained in:
parent
f7bc3bca66
commit
4dde4c664b
@ -19032,7 +19032,7 @@ void clif_parse_change_title(int fd, struct map_session_data *sd)
|
|||||||
}else if( title_id <= 0 ){
|
}else if( title_id <= 0 ){
|
||||||
sd->status.title_id = 0;
|
sd->status.title_id = 0;
|
||||||
}else{
|
}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);
|
clif_change_title_ack(sd, 1, title_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user