summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-31 12:52:52 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-31 12:52:52 -0300
commita1fceacf595aa34c9ad3d29f3e60788cec6d8e4b (patch)
treebb5e8369d191b33ea8f509b5b715e8c2b2d75df9
parent3623da07da6c04fc96eaa6557fbe51e559b15416 (diff)
downloadserverdata-a1fceacf595aa34c9ad3d29f3e60788cec6d8e4b.tar.gz
serverdata-a1fceacf595aa34c9ad3d29f3e60788cec6d8e4b.tar.bz2
serverdata-a1fceacf595aa34c9ad3d29f3e60788cec6d8e4b.tar.xz
serverdata-a1fceacf595aa34c9ad3d29f3e60788cec6d8e4b.zip
Zero is weird, and is definitely a bug
-rw-r--r--npc/magic/forget.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/magic/forget.txt b/npc/magic/forget.txt
index 0b8357fd0..e410755eb 100644
--- a/npc/magic/forget.txt
+++ b/npc/magic/forget.txt
@@ -15,7 +15,7 @@ function script ForgetfulNPC {
{
next;
mesc l("Which skill will you FORGET permanently today?"), 1;
- setarray .@forget$, l("Cancel"), 0;
+ setarray .@forget$, l("Cancel"), -1;
freeloop(true);
for (.@i=0; .@i < getarraysize($@MSK_MAGIC) ; .@i++) {
.@sk=$@MSK_MAGIC[.@i];
@@ -28,7 +28,7 @@ function script ForgetfulNPC {
}
freeloop(false);
menuint2(".@forget$");
- if (!@menuret)
+ if (@menuret < 1)
close;
mes "";
mesc l("Skill @@ will be permanently lost!", getskillname(@menuret)), 1;