버그 수정

This commit is contained in:
2019-04-21 21:15:53 +09:00
parent 16fed754a9
commit 0e50216cee
12 changed files with 67 additions and 42 deletions
@@ -104,7 +104,7 @@ class SightseeingMessage{
}
public function pickAction():array{
[$type, $texts] = Util::choiceRandomUsingWeightPair(static::$messages);
[$type, $texts] = Util::choiceRandomUsingWeightPair(static::$messages??[]);
$text = Util::choiceRandom($texts);
return [$type, $text];