summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-11 13:32:28 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-11 13:32:28 +0000
commit2b3819b533ee287e694795d45695a17cb7bf2f10 (patch)
tree06536bbd73e30caf4585b9c4604041ff5d266345 /src
parent2f44d23b95b9658b04c5f012335a4ea079c817a6 (diff)
downloadhercules-2b3819b533ee287e694795d45695a17cb7bf2f10.tar.gz
hercules-2b3819b533ee287e694795d45695a17cb7bf2f10.tar.bz2
hercules-2b3819b533ee287e694795d45695a17cb7bf2f10.tar.xz
hercules-2b3819b533ee287e694795d45695a17cb7bf2f10.zip
Fixed a bug where weapon repair skill would crash, super-ultra-mega-thanks to EvilPuncker.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16623 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 8a9fa9c19..3865b55a0 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -13750,7 +13750,7 @@ void skill_repairweapon (struct map_session_data *sd, int idx)
return;
}
- if ( sd->inventory_data[idx]->type == IT_WEAPON)
+ if ( target_sd->inventory_data[idx]->type == IT_WEAPON)
material = materials [itemdb_wlv(item->nameid)-1]; // Lv1/2/3/4 weapons consume 1 Iron Ore/Iron/Steel/Rough Oridecon
else
material = materials [2]; // Armors consume 1 Steel