버그 수정

This commit is contained in:
2019-04-21 21:15:53 +09:00
parent da5fc417c5
commit 0c64b506c2
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];