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

This commit is contained in:
Hide_D committed 2018-06-18 02:23:30 +09:00
1 parent e2a1203b43
commit acb09bfe71
3 files changed
+11 -6

No files matched your search

+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;
}