summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-22 11:34:47 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-22 11:34:47 +0000
commit9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17 (patch)
treee94d054fc11c8b0622e1f6a2e6c41a8510b1bc55 /src/map
parent24df56224c30e3c9e00f4c2580a4c76671bd8b40 (diff)
downloadhercules-9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17.tar.gz
hercules-9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17.tar.bz2
hercules-9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17.tar.xz
hercules-9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17.zip
Added a missing null-pointer check to the timed player pvp/gvg respawn function (mistake in r12232)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12423 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/pc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index c379e6460..dbb361ef3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4918,7 +4918,9 @@ void pc_respawn(struct map_session_data* sd, uint8 clrtype)
static int pc_respawn_timer(int tid,unsigned int tick,int id,int data)
{
struct map_session_data *sd = map_id2sd(id);
- pc_respawn(sd,0);
+ if( sd != NULL)
+ pc_respawn(sd,0);
+
return 0;
}