fix #1184 -- useless error message when forgetting to define Render:Image: on a derived actor type
This commit is contained in:
@@ -59,6 +59,10 @@ namespace OpenRA.Graphics
|
||||
|
||||
public static bool HasSequence(string unit, string seq)
|
||||
{
|
||||
if (!units.ContainsKey(unit))
|
||||
throw new InvalidOperationException(
|
||||
"Unit `{0}` does not have any sequences defined.".F(unit));
|
||||
|
||||
return units[unit].ContainsKey(seq);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user