fix crash when disguising the spy as infantry without stand2
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenRA.Support;
|
||||
|
||||
namespace OpenRA.Graphics
|
||||
{
|
||||
@@ -199,5 +201,10 @@ namespace OpenRA.Graphics
|
||||
{
|
||||
return sequenceProvider.GetSequence(name, sequenceName);
|
||||
}
|
||||
|
||||
public string GetRandomExistingSequence(string[] sequences, MersenneTwister random)
|
||||
{
|
||||
return sequences.Where(s => HasSequence(s)).RandomOrDefault(random);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user