Fixed a bug where weapon repair skill would crash, super-ultra-mega-thanks to EvilPuncker.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16623 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-08-11 13:32:28 +00:00
parent bd7de23625
commit 3f2bdc58fd

View File

@ -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