Browse Source

Fixed Cloud Kill causing a map-server crash
* Follow up to e5a197a and 5fabab9.

aleos89 8 years ago
parent
commit
99e49d9a45
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/map/status.c

+ 2 - 0
src/map/status.c

@@ -12514,6 +12514,8 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
 			struct block_list *src = map_id2bl(sce->val2), *unit_bl = map_id2bl(sce->val3);
 
 			if (src && unit_bl){
+				map_freeblock_lock();
+				dounlock = true;
 				skill_attack(skill_get_type(status_sc2skill(type)), src, unit_bl, bl, SO_CLOUD_KILL, sce->val1, tick, 0);
 
 				if( !status_isdead(bl) )