Skip to content

Commit

Permalink
* Fixed impossible condition check in @questskill and @Lostskill (bug…
Browse files Browse the repository at this point in the history
…report:5114, since r11222).

git-svn-id: http://eathena.googlecode.com/svn/trunk@15234 9c4de8d1-4af9-ca9b-867f-b47ac08f6c80
  • Loading branch information
ai4rei committed Feb 16, 2013
1 parent 85d573a commit 464bc8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog-Trunk.txt
@@ -1,5 +1,7 @@
Date Added

2013/02/16
* Fixed impossible condition check in @questskill and @lostskill (bugreport:5114, since r11222). [Ai4rei]
2013/02/01
* Added support for 2012-07-02aRagexeRE. [Ai4rei]
* Various insignificant tweaks. [Ai4rei]
Expand Down
4 changes: 2 additions & 2 deletions src/map/atcommand.c
Expand Up @@ -3734,7 +3734,7 @@ ACMD_FUNC(questskill)
clif_displaymessage(fd, "Please, enter a quest skill number (usage: @questskill <#:0+>).");
return -1;
}
if (skill_id < 0 && skill_id >= MAX_SKILL_DB) {
if (skill_id < 0 || skill_id >= MAX_SKILL_DB) {
clif_displaymessage(fd, msg_txt(198)); // This skill number doesn't exist.
return -1;
}
Expand Down Expand Up @@ -3765,7 +3765,7 @@ ACMD_FUNC(lostskill)
clif_displaymessage(fd, "Please, enter a quest skill number (usage: @lostskill <#:0+>).");
return -1;
}
if (skill_id < 0 && skill_id >= MAX_SKILL) {
if (skill_id < 0 || skill_id >= MAX_SKILL) {
clif_displaymessage(fd, msg_txt(198)); // This skill number doesn't exist.
return -1;
}
Expand Down

0 comments on commit 464bc8a

Please sign in to comment.