diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-07 21:39:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:22 +0300 |
commit | 33d045acfba3a6dbde16a4bb26fde5ecab427e4e (patch) | |
tree | f4b159bb8ac8f747a6290c041472a57f68e1d254 /src/map/skill.c | |
parent | eee04309da8d3ac35a752e119cf59fdd35b679da (diff) | |
download | hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.gz hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.bz2 hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.tar.xz hercules-33d045acfba3a6dbde16a4bb26fde5ecab427e4e.zip |
Update packet PACKET_CZ_REQ_ITEMREPAIR.
Diffstat (limited to 'src/map/skill.c')
-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 b00274810..64b04e7b4 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -16097,7 +16097,7 @@ static void skill_repairweapon(struct map_session_data *sd, int idx) if ( !( target_sd = map->id2sd(sd->menuskill_val) ) ) //Failed.... return; - if( idx == 0xFFFF ) // No item selected ('Cancel' clicked) + if (idx == 0xFFFF || idx == -1) // No item selected ('Cancel' clicked) return; if( idx < 0 || idx >= MAX_INVENTORY ) return; //Invalid index?? |