fix: 초기 갱신 없이 국가 삭제시 버그 수정

This commit is contained in:
2023-02-23 00:30:42 +09:00
parent 4db1a4b32e
commit 4cbd824ee0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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, '이');
+1 -1
View File
@@ -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']);