From 2518ac021d7830661c3e36b07f6e86dcf2eb74b4 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 22 May 2023 02:48:41 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ProvideNPCTroopLeader=20=EA=B2=BD?= =?UTF-8?q?=EA=B3=A0=20=EC=9A=B0=ED=9A=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Event/Action/ProvideNPCTroopLeader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/Event/Action/ProvideNPCTroopLeader.php b/hwe/sammo/Event/Action/ProvideNPCTroopLeader.php index 3241d29a..d8d4ab9f 100644 --- a/hwe/sammo/Event/Action/ProvideNPCTroopLeader.php +++ b/hwe/sammo/Event/Action/ProvideNPCTroopLeader.php @@ -41,7 +41,7 @@ class ProvideNPCTroopLeader extends \sammo\Event\Action foreach ($db->query('SELECT nation,name,level,tech,aux FROM nation') as $nation) { $nationID = $nation['nation']; - $maxNPCTroopLeaderCnt = self::MaxNPCTroopLeaderCnt[$nation['level']]; + $maxNPCTroopLeaderCnt = self::MaxNPCTroopLeaderCnt[$nation['level']] ?? 0; $NPCTroopLeaderCnt = $NPCTroopLeaderCntByNation[$nationID] ?? 0; if ($NPCTroopLeaderCnt >= $maxNPCTroopLeaderCnt) {