summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-18 15:12:05 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-18 15:12:05 +0000
commit0d5c334c08846eedabacdabb4d4de04c90ec6b76 (patch)
tree5353aeee74459cc50497da6b56cd631c25ec5eec
parent2c1b05e983bc4b1ee565c375c71db8f5a8f19b9c (diff)
downloadhercules-0d5c334c08846eedabacdabb4d4de04c90ec6b76.tar.gz
hercules-0d5c334c08846eedabacdabb4d4de04c90ec6b76.tar.bz2
hercules-0d5c334c08846eedabacdabb4d4de04c90ec6b76.tar.xz
hercules-0d5c334c08846eedabacdabb4d4de04c90ec6b76.zip
* Fixed CR_SLIMPITCHER passing item requirement index to itemdb_search when used by a monster (bugreport:5021, since r6791).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14959 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 949d95cfb..fd22c0ec5 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,5 +1,7 @@
Date Added
+2011/09/18
+ * Fixed CR_SLIMPITCHER passing item requirement index to itemdb_search when used by a monster (bugreport:5021, since r6791). [Ai4rei]
2011/09/17
* Rental items no longer expire in cart and storage. The packet does not support this and rentals cannot be put in on official either (since r14082, related r14083). [Ai4rei]
- Corrected packet 0x299 (ZC_CASH_ITEM_DELETE) missing inventory index field (since r13370).
diff --git a/src/map/skill.c b/src/map/skill.c
index a596034c6..ad333c17d 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6408,7 +6408,7 @@ int skill_castend_pos2(struct block_list* src, int x, int y, int skillid, int sk
}
} else {
int i = skilllv%11 - 1;
- struct item_data *item = itemdb_search(i);
+ struct item_data *item;
i = skill_db[skillid].itemid[i];
item = itemdb_search(i);
potion_flag = 1;