diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-03-11 13:24:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-03-11 13:24:37 -0300 |
commit | e6f405b71b507f3d9a3fee22ba25af9edf3924f5 (patch) | |
tree | eb4da420a926bac5240d9f0b5271f1a2eb116fcf /npc | |
parent | 755f879d8d487aa0bf86421743560fa688d4cd5e (diff) | |
download | serverdata-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.txt | 1 |
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); |