From e4fb8345a46d41faa2535f39f96a0ed27e795d16 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Fri, 15 Mar 2019 16:38:26 -0300
Subject: Well, [-1] causes script to break...

---
 npc/003-5/jeweler.txt | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'npc/003-5')

diff --git a/npc/003-5/jeweler.txt b/npc/003-5/jeweler.txt
index 6442eab82..e0253c1cf 100644
--- a/npc/003-5/jeweler.txt
+++ b/npc/003-5/jeweler.txt
@@ -131,6 +131,8 @@ L_Clear:
     next;
     mes "##B" + l("Drag and drop an item from your inventory.") + "##b";
     .@item_index = requestitemindex();
+    if (.@item_index < 0)
+        goto L_Menu;
 
     // Check if we received an item
     getinventorylist;
-- 
cgit v1.2.3-70-g09d2