* Fixed a crash in clif_parse_FriendsListAdd, when a player is added that is not online (bugreport:4947, since r14835).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14843 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
213ff7ff38
commit
0eb61f5a95
@ -1,5 +1,7 @@
|
|||||||
Date Added
|
Date Added
|
||||||
|
|
||||||
|
2011/05/02
|
||||||
|
* Fixed a crash in clif_parse_FriendsListAdd, when a player is added that is not online (bugreport:4947, since r14835). [Ai4rei]
|
||||||
2011/05/31
|
2011/05/31
|
||||||
* Fixed a typo in buyingstore_create. [Inkfish]
|
* Fixed a typo in buyingstore_create. [Inkfish]
|
||||||
2011/05/30
|
2011/05/30
|
||||||
|
@ -11989,17 +11989,17 @@ void clif_parse_FriendsListAdd(int fd, struct map_session_data *sd)
|
|||||||
|
|
||||||
f_sd = map_nick2sd((char*)RFIFOP(fd,2));
|
f_sd = map_nick2sd((char*)RFIFOP(fd,2));
|
||||||
|
|
||||||
if( sd->bl.id == f_sd->bl.id )
|
|
||||||
{// adding oneself as friend
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Friend doesn't exist (no player with this name)
|
// Friend doesn't exist (no player with this name)
|
||||||
if (f_sd == NULL) {
|
if (f_sd == NULL) {
|
||||||
clif_displaymessage(fd, msg_txt(3));
|
clif_displaymessage(fd, msg_txt(3));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( sd->bl.id == f_sd->bl.id )
|
||||||
|
{// adding oneself as friend
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// @noask [LuzZza]
|
// @noask [LuzZza]
|
||||||
if(f_sd->state.noask) {
|
if(f_sd->state.noask) {
|
||||||
clif_noask_sub(sd, f_sd, 5);
|
clif_noask_sub(sd, f_sd, 5);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user