시나리오 생성시 잘못된 도시를 입력한 경우에도 정상 빌드되도록 수정

This commit is contained in:
2018-06-18 02:23:30 +09:00
parent bc03a2885a
commit 0f342270dc
3 changed files with 11 additions and 6 deletions
+5 -1
View File
@@ -76,7 +76,11 @@ class CityHelper{
self::generateCache();
}
return self::$listInv[$cityName];
$city = self::$listInv[$cityName]??null;
if($city === null){
trigger_error("$cityName 에 해당하는 도시가 없습니다.");
}
return $city;
}