Selaa lähdekoodia

Fixing the Warning: "suggest explicit braces to avoid ambiguous `else'" to SC_ITEMBOOST.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11358 54d463be-8e91-2dee-dedb-b68131a5f0ec
zephyrus 17 vuotta sitten
vanhempi
commit
81c62790ca
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      src/map/mob.c

+ 2 - 0
src/map/mob.c

@@ -2022,8 +2022,10 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
 			if (rand() % 10000 >= drop_rate)
 			{
 				if (sd && sd->sc.data[SC_ITEMBOOST].timer != -1)
+				{
 					if (rand() % 10000 >= drop_rate)
 						continue; // Double try by Bubble Gum
+				}
 				else
 					continue;
 			}