ソースを参照

- Fixed a potential crash in Adoption. Reported by Yomanda.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12428 54d463be-8e91-2dee-dedb-b68131a5f0ec
zephyrus 17 年 前
コミット
ecbbb56d6c
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/map/clif.c

+ 3 - 0
src/map/clif.c

@@ -12069,6 +12069,9 @@ void clif_parse_Adopt_reply(int fd, struct map_session_data *sd)
 
 	sd->adopt_invite = 0;
 
+	if( !p1_sd )
+		return; // Parent is not online
+
 	if( pid != p1_sd->status.account_id || !result )
 		return; // Not the same sender | Reply No