Commit 3feb38fe authored by mercury233's avatar mercury233

allow empty dialog

parent 5a699ad2
using System;
using System;
using System.IO;
using System.Collections.Generic;
using System.Runtime.Serialization;
......@@ -166,6 +166,8 @@ namespace WindBot.Game.AI
{
if (!_game._chat)
return;
if (array == null || array.Count == 0)
return;
string message = string.Format(array[Program.Rand.Next(array.Count)], opts);
if (message != "")
_game.Chat(message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment