summaryrefslogtreecommitdiff
path: root/npc/magic/forget.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/forget.txt')
-rw-r--r--npc/magic/forget.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/magic/forget.txt b/npc/magic/forget.txt
index f000c82bd..81e3cdf9f 100644
--- a/npc/magic/forget.txt
+++ b/npc/magic/forget.txt
@@ -15,11 +15,11 @@ 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];
- if (getskilllv(.@sk) > 1) {
+ if (getskilllv(.@sk)) {
if ($@MSK_CLASS[.@sk] == .@school) {
array_push(.@forget$, getskillname(.@sk));
array_push(.@forget$, str(.@sk));
@@ -28,7 +28,8 @@ function script ForgetfulNPC {
}
freeloop(false);
menuint2(.@forget$);
- if (!@menuret)
+ deletearray(.@forget$);
+ if (@menuret < 1)
close;
mes "";
mesc l("Skill @@ will be permanently lost!", getskillname(@menuret)), 1;