From 2b3819b533ee287e694795d45695a17cb7bf2f10 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 11 Aug 2012 13:32:28 +0000 Subject: 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 --- src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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 -- cgit v1.2.3-70-g09d2