긴천 시 도시 참조하는 부분에 Undefined offset 문제 발생하는 것 해결
This commit is contained in:
@@ -1910,6 +1910,9 @@ function ConquerCity($game, $general, $city, $nation, $destnation) {
|
|||||||
$maxCityPop = 0;
|
$maxCityPop = 0;
|
||||||
|
|
||||||
foreach($distList[$dist] as $cityID){
|
foreach($distList[$dist] as $cityID){
|
||||||
|
if(!key_exists($cityID, $cities)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$city = $cities[$cityID];
|
$city = $cities[$cityID];
|
||||||
'@phan-var array<string,mixed> $city';
|
'@phan-var array<string,mixed> $city';
|
||||||
if($city['nation'] != $destnation['nation']){
|
if($city['nation'] != $destnation['nation']){
|
||||||
|
|||||||
Reference in New Issue
Block a user