summaryrefslogtreecommitdiff
path: root/npc/028-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/028-1')
-rw-r--r--npc/028-1/Doctor2.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/028-1/Doctor2.txt b/npc/028-1/Doctor2.txt
index e828e91b..1a4b9f36 100644
--- a/npc/028-1/Doctor2.txt
+++ b/npc/028-1/Doctor2.txt
@@ -381,7 +381,7 @@ L_island_end_menu_loop:
set @i, 0;
if (@c == 0) goto L_island_post_menu_loop_sub;
L_island_end_menu_loop_sub:
- if (@submenu$[@c] == @menuitems$[@index]) goto L_island_end_menu_loop;
+ if (@submenu$[@i] == @menuitems$[@index]) goto L_island_end_menu_loop;
set @i, @i + 1;
if (@i < @c) goto L_island_end_menu_loop_sub;
L_island_post_menu_loop_sub:
@@ -395,7 +395,7 @@ L_island_post_menu_loop_sub:
@submenu$[2], -,
@submenu$[3], -;
set @menu, @menu - 1;
- if (@menu >= 4) goto L_island_oo_range;
+ if (@menu >= 4 || @menu < 0) goto L_island_oo_range;
if (@submenuindex[@menu] == 8 || @submenuindex[@menu] == 9)
goto L_At_Island_Resolve;