summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-14 23:11:55 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-14 23:11:55 +0000
commitc3c7efd8b1332095ff723230a813539600896e35 (patch)
tree318a1d0326c60b516f6c4e6cc1a83666dee0c9af /src
parent27abf1bcb19ef14ec08dc7916cd383e3f045c88b (diff)
downloadhercules-c3c7efd8b1332095ff723230a813539600896e35.tar.gz
hercules-c3c7efd8b1332095ff723230a813539600896e35.tar.bz2
hercules-c3c7efd8b1332095ff723230a813539600896e35.tar.xz
hercules-c3c7efd8b1332095ff723230a813539600896e35.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c2
1 files changed, 2 insertions, 0 deletions
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);