summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-11 13:24:37 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-11 13:24:37 -0300
commite6f405b71b507f3d9a3fee22ba25af9edf3924f5 (patch)
treeeb4da420a926bac5240d9f0b5271f1a2eb116fcf /npc
parent755f879d8d487aa0bf86421743560fa688d4cd5e (diff)
downloadserverdata-e6f405b71b507f3d9a3fee22ba25af9edf3924f5.tar.gz
serverdata-e6f405b71b507f3d9a3fee22ba25af9edf3924f5.tar.bz2
serverdata-e6f405b71b507f3d9a3fee22ba25af9edf3924f5.tar.xz
serverdata-e6f405b71b507f3d9a3fee22ba25af9edf3924f5.zip
Prevent a multiplication by zero
Diffstat (limited to 'npc')
-rw-r--r--npc/029-1/pentagram.txt1
1 files changed, 1 insertions, 0 deletions
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);