diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-11 13:32:28 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-11 13:32:28 +0000 |
commit | 2b3819b533ee287e694795d45695a17cb7bf2f10 (patch) | |
tree | 06536bbd73e30caf4585b9c4604041ff5d266345 /src/map | |
parent | 2f44d23b95b9658b04c5f012335a4ea079c817a6 (diff) | |
download | hercules-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/map')
-rw-r--r-- | src/map/skill.c | 2 |
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 |