From ccfb73c19bf4acf98adb5e47d7da054085fc9966 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 1 May 2021 23:46:33 +0900 Subject: [PATCH] =?UTF-8?q?=ED=99=98=EC=95=BD=EC=9D=84=20=EC=8A=B5?= =?UTF-8?q?=EB=93=9D=ED=95=98=EA=B2=8C=20=EB=90=98=EB=8A=94=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hwe/func.php b/hwe/func.php index 3fdd843c..16112210 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1570,6 +1570,9 @@ function giveRandomUniqueItem(General $general, string $acquireType): bool $availableUnique[] = [[$itemType, $itemCode], $cnt]; continue; } + if($cnt == 0){ + continue; + } $remain = $cnt - $occupiedUnique[$itemCode]; if ($remain > 0) {