From 46bbdfe15230da4d8abe41faf04c32fb42c3ad84 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 2 May 2019 10:55:27 -0300 Subject: Use Exception() in some places --- npc/functions/inventoryplace.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'npc/functions/inventoryplace.txt') diff --git a/npc/functions/inventoryplace.txt b/npc/functions/inventoryplace.txt index 4a5e08cad..76cdad21f 100644 --- a/npc/functions/inventoryplace.txt +++ b/npc/functions/inventoryplace.txt @@ -13,8 +13,7 @@ function script inventoryplace { if (.@argc % 2 != 0) { - debugmes "inventoryplace: Wrong argument count."; - close; + Exception("inventoryplace: Wrong argument count.", RB_SPEECH|RB_ISFATAL|RB_PLEASEREPORT|RB_DEBUGMES); } for (.@i = .@j = 0; .@i < .@argc; .@i += 2) -- cgit v1.2.3-70-g09d2