diff --git a/hwe/func.php b/hwe/func.php index cb12a464..20a387ff 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1790,7 +1790,7 @@ function deleteNation(General $lord, bool $applyDB): array $nation['aux'] = Json::decode($nation['aux']); $nation['msg'] = $nationStor->nationNotice['msg'] ?? ''; $nation['scout_msg'] = $nationStor->scout_msg; - $nation['aux'] += $nationStor->max_power; + $nation['aux'] += $nationStor->max_power ?? []; $nation['history'] = getNationHistoryLogAll($nationID); $josaYi = JosaUtil::pick($nationName, '이'); diff --git a/hwe/func_gamerule.php b/hwe/func_gamerule.php index 6ecfe45b..ec20b72c 100644 --- a/hwe/func_gamerule.php +++ b/hwe/func_gamerule.php @@ -1164,7 +1164,7 @@ function checkEmperior() $nation['aux'] = Json::decode($nation['aux']); $nation['msg'] = $nationStor->nationNotice['msg'] ?? '';; $nation['scout_msg'] = $nationStor->scout_msg; - $nation['aux'] += $nationStor->max_power; + $nation['aux'] += $nationStor->max_power ?? []; $nation['history'] = getNationHistoryLogAll($nation['nation']); storeOldGenerals(0, $admin['year'], $admin['month']);