From 95f7b6d5e053cabf72618d6632761f95a301a087 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 13 Oct 2020 11:00:03 -0300 Subject: Tolchi : Check for the impossible --- npc/005-4/tolchi.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/005-4/tolchi.txt') 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; -- cgit v1.2.3-60-g2f50