fix #1184 -- useless error message when forgetting to define Render:Image: on a derived actor type

This commit is contained in:
Chris Forbes
2011-09-24 19:58:34 +12:00
parent e829e4b5aa
commit 3b2efc7b0b

View File

@@ -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);
}
}