Selaa lähdekoodia

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 13 vuotta sitten
vanhempi
commit
f82bd6d0b5
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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;
 				}