From c3c7efd8b1332095ff723230a813539600896e35 Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Tue, 14 Feb 2012 23:11:55 +0000 Subject: Fixed skill timers being added even if source has been already removed from map and is about to be freed (bug:5277). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15582 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index 9bf915917..cdf70d82f 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2914,6 +2914,8 @@ int skill_addtimerskill (struct block_list *src, unsigned int tick, int target, int i; struct unit_data *ud; nullpo_retr(1, src); + if (src->prev == NULL) + return 0; ud = unit_bl2ud(src); nullpo_retr(1, ud); -- cgit v1.2.3-70-g09d2