시나리오 생성시 장수의 NPC 메시지가 입력되지 않는 버그 해결

This commit is contained in:
2018-04-27 22:51:39 +09:00
parent 20f74f6645
commit a2d3ac9e70
2 changed files with 11 additions and 3 deletions
+8 -1
View File
@@ -192,7 +192,14 @@ function processAI($no) {
$query = "select nation,level,tech,gold,rice,rate,type,color,name,war from nation where nation='{$general['nation']}'";
$result = MYDB_query($query, $connect) or Error("processAI03 ".MYDB_error($connect),"");
$nation = MYDB_fetch_array($result);
$nation = MYDB_fetch_array($result)??[
'nation'=>0,
'color'=>'#000000',
'name'=>'재야',
'level'=>0,
'gold'=>0,
'rice'=>0,
];
$coreCommand = array();
if($general['level'] >= 5) {