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:
parent
bd7de23625
commit
3f2bdc58fd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user