don't crash on missing voice phrases
This commit is contained in:
@@ -238,6 +238,9 @@ namespace OpenRA
|
|||||||
|
|
||||||
var vi = Rules.Voices[mi.Voice.ToLowerInvariant()];
|
var vi = Rules.Voices[mi.Voice.ToLowerInvariant()];
|
||||||
|
|
||||||
|
if (!vi.Pools.Value.ContainsKey(phrase))
|
||||||
|
return false;
|
||||||
|
|
||||||
var clip = vi.Pools.Value[phrase].GetNext();
|
var clip = vi.Pools.Value[phrase].GetNext();
|
||||||
if (clip == null)
|
if (clip == null)
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user