Browse Source

Fixed single character Say text not parsing correctly

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

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

@ -68,12 +68,15 @@ namespace Fungus
m = m.NextMatch();
}
if (position < storyText.Length - 1)
if (position < storyText.Length)
{
string postText = storyText.Substring(position, storyText.Length - position);
if (postText.Length > 0)
{
AddWordsToken(tokens, postText);
}
}
}
protected static void AddWordsToken(List<Token> tokenList, string words)
{

Loading…
Cancel
Save