From e6f405b71b507f3d9a3fee22ba25af9edf3924f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 11 Mar 2021 13:24:37 -0300 Subject: Prevent a multiplication by zero --- npc/029-1/pentagram.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/npc/029-1/pentagram.txt b/npc/029-1/pentagram.txt index 5efc34be6..261b0634d 100644 --- a/npc/029-1/pentagram.txt +++ b/npc/029-1/pentagram.txt @@ -45,6 +45,7 @@ } closeclientdialog; + if (!countitem(.@it)) end; .@val*=countitem(.@it); .@val*=(readparam2(bInt)+100)/100; // Each int gives +1% delitem .@it, countitem(.@it); -- cgit v1.2.3-60-g2f50