Parcourir la source

- Fixed @reloaditemdb not unsetting the consume delay flag when a type 11 item was changed to something else before reloading.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10146 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex il y a 18 ans
Parent
commit
5bc3f4b2b0
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/map/itemdb.c

+ 2 - 1
src/map/itemdb.c

@@ -869,7 +869,8 @@ static int itemdb_readdb(void)
 				//(yggdrasil leaf, spells & pet lures) [Skotlex]
 				id->type = IT_USABLE;
 				id->flag.delay_consume=1;
-			}
+			} else //In case of an itemdb reload and the item type changed.
+				id->flag.delay_consume=0;
 
 			{
 				int buy = atoi(str[4]), sell = atoi(str[5]);