summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-24 17:31:08 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-24 17:31:08 +0000
commit947c9789ff8c6dd1c7c5c615f102fbd761dcbaf9 (patch)
treee014793c9e3d410043a2e561e9e2a8bfdfb8ba61 /src/map
parent07e9df123a3352a712fb801893eabdbf0f0e442a (diff)
downloadhercules-947c9789ff8c6dd1c7c5c615f102fbd761dcbaf9.tar.gz
hercules-947c9789ff8c6dd1c7c5c615f102fbd761dcbaf9.tar.bz2
hercules-947c9789ff8c6dd1c7c5c615f102fbd761dcbaf9.tar.xz
hercules-947c9789ff8c6dd1c7c5c615f102fbd761dcbaf9.zip
- Fixed a potential crash in Adoption. Reported by Yomanda.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12428 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 1c9eee4fb..553675939 100644
--- a/src/map/clif.c
+++ b/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