From 8c6afee7c9c80f79826e3296975d5149b63122d8 Mon Sep 17 00:00:00 2001 From: hide_d Date: Tue, 24 Sep 2019 07:34:55 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=80=EB=8C=80=EC=9E=A5=20=EC=82=AC?= =?UTF-8?q?=EB=A7=9D=EC=9D=98=20=EA=B2=BD=EC=9A=B0=EB=8F=84=20=EA=B3=A0?= =?UTF-8?q?=EB=A0=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func_npc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hwe/func_npc.php b/hwe/func_npc.php index 52874dec..0aa6061a 100644 --- a/hwe/func_npc.php +++ b/hwe/func_npc.php @@ -350,7 +350,10 @@ function processAI($no, &$reduce_turn) { 'SELECT general.no,general.name,general.city,turn0,troop,general.nation, city.nation AS city_nation FROM general JOIN city ON city.city = general.city WHERE troop = %i', $general['troop'] ); - if(DecodeCommand($troopLeader['turn0'])[0] != 26){ + if(!$troopLeader){ + //부대장 사망..? + } + else if(DecodeCommand($troopLeader['turn0'])[0] != 26){ //valid } else if($troopLeader['nation'] == $troopLeader['city_nation']){