From d3390dc4901976d530f7eb16f3df9f688e448919 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 9 Jul 2022 12:00:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=83=81=EC=9D=B8=20=EB=93=B1=EB=A1=9D?= =?UTF-8?q?=20=EA=B2=BD=EB=A7=A4=EC=97=90=EC=84=9C=20warning=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_auction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hwe/func_auction.php b/hwe/func_auction.php index c4fc2d6d..c5196952 100644 --- a/hwe/func_auction.php +++ b/hwe/func_auction.php @@ -18,7 +18,7 @@ function registerAuction(RandUtil $rng) [AuctionType::BuyRice->value, AuctionType::SellRice->value], )); - $neutralbuyRiceCnt = $neutralAuctionCnt[AuctionType::BuyRice->value]; + $neutralbuyRiceCnt = $neutralAuctionCnt[AuctionType::BuyRice->value] ?? 0; // 판매건 등록 if ($rng->nextBool(1 / ($neutralbuyRiceCnt + 5))) { @@ -38,7 +38,7 @@ function registerAuction(RandUtil $rng) AuctionBuyRice::openResourceAuction($dummyGeneral, $amount, $term, $cost, $topv); } - $neutralSellRiceCnt = $neutralAuctionCnt[AuctionType::SellRice->value]; + $neutralSellRiceCnt = $neutralAuctionCnt[AuctionType::SellRice->value] ?? 0; // 구매건 등록 if ($rng->nextBool(1 / ($neutralSellRiceCnt + 5))) { //평균 쌀의 5% ~ 25%