Commit 44e29914 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent c32f8594
......@@ -48,7 +48,7 @@ namespace WindBot.Game.AI
DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(DialogsData));
using (FileStream fs = File.OpenRead("Dialogs/" + Environment.GetEnvironmentVariable("YGOPRO_DIALOG") + ".json"))
{
DialogsData data = (DialogsData)serializer.ReadObject();
DialogsData data = (DialogsData)serializer.ReadObject(fs);
_duelstart = data.duelstart;
_newturn = data.newturn;
_endturn = data.endturn;
......
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