Browse Source

Merge pull request #519 from lealeelu/blank-portrait-bugfix

Bugfix for when portrait field is blank
master
Chris Gregan 9 years ago committed by GitHub
parent
commit
31bab5da6e
  1. 2
      Assets/Fungus/Narrative/Scripts/Character.cs

2
Assets/Fungus/Narrative/Scripts/Character.cs

@ -80,7 +80,7 @@ namespace Fungus
for (int i = 0; i < portraits.Count; i++)
{
if ( String.Compare(portraits[i].name, portrait_string, true) == 0)
if (portraits[i] != null && String.Compare(portraits[i].name, portrait_string, true) == 0)
{
return portraits[i];
}

Loading…
Cancel
Save