diff --git a/src/sammo/RandUtil.php b/src/sammo/RandUtil.php index 3bede07a..8f9d7769 100644 --- a/src/sammo/RandUtil.php +++ b/src/sammo/RandUtil.php @@ -104,7 +104,8 @@ class RandUtil public function choiceUsingWeight(array $items) { if(!$items){ - throw new \InvalidArgumentException(); + return 2; // 내특 줄 수 있는게 하나도 없을시 일단 강제로 상재로 주는걸로 긴급 버그 수정 + //throw new \InvalidArgumentException(); } $sum = 0; foreach ($items as $value) {