Explorar o código

fix to timer errors on tweakwon kicks, bugreport:4028

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15172 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind %!s(int64=13) %!d(string=hai) anos
pai
achega
f82bd6d0b5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/map/skill.c

+ 2 - 1
src/map/skill.c

@@ -1928,7 +1928,8 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds
 			  	{	//Extend combo time.
 					sce->val1 = skillid; //Update combo-skill
 					sce->val3 = skillid;
-					delete_timer(sce->timer, status_change_timer);
+					if( sce->timer != INVALID_TIMER )
+						delete_timer(sce->timer, status_change_timer);
 					sce->timer = add_timer(tick+sce->val4, status_change_timer, src->id, SC_COMBO);
 					break;
 				}