Browse Source

Fixed single character Say text not parsing correctly

master
chrisgregan 10 years ago
parent
commit
7441fcdcd6
  1. 9
      Assets/Fungus/Narrative/Scripts/DialogParser.cs

9
Assets/Fungus/Narrative/Scripts/DialogParser.cs

@ -67,11 +67,14 @@ namespace Fungus
position = m.Index + tagText.Length;
m = m.NextMatch();
}
if (position < storyText.Length - 1)
if (position < storyText.Length)
{
string postText = storyText.Substring(position, storyText.Length - position);
AddWordsToken(tokens, postText);
if (postText.Length > 0)
{
AddWordsToken(tokens, postText);
}
}
}

Loading…
Cancel
Save