TastStateManager - more exception prevention

This commit is contained in:
adelikat 2015-09-06 14:18:31 -04:00
parent 0a4ad42eaa
commit b692acf2f9
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ namespace BizHawk.Client.Common
if (kvp.Key == 0 && States.ContainsKey(0))
continue; // TODO: It might be a better idea to just not put state 0 in BranchStates.
if (kvp.Value.ContainsKey(index))
if (kvp.Value != null && kvp.Value.ContainsKey(index))
SetState(kvp.Key, kvp.Value[index].State);
}