summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/005-4/tolchi.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/005-4/tolchi.txt b/npc/005-4/tolchi.txt
index e2eed605a..7ab272a79 100644
--- a/npc/005-4/tolchi.txt
+++ b/npc/005-4/tolchi.txt
@@ -256,6 +256,13 @@ function tolchi_tweaks {
getinventorylist();
.@handle=@inventorylist_id[.@id];
+ // Invalid (absolutely should never happen)
+ if (.@handle < 1) {
+ mesn;
+ mesq l("...What? Which item? Sorry, too much smoke around here.");
+ next;
+ return;
+ }
// Multiple
if (countitem(.@handle) != 1) {
mesn;