Start pruning unused sequences

This commit is contained in:
Paul Chote
2010-02-05 20:38:58 +13:00
parent 3ba2dae1dc
commit 43bd1f1ea3
3 changed files with 16 additions and 294 deletions

View File

@@ -70,7 +70,12 @@ namespace OpenRa.Graphics
public static CursorSequence GetCursorSequence(string cursor)
{
return cursors[cursor];
try { return cursors[cursor]; }
catch (KeyNotFoundException)
{
throw new InvalidOperationException(
"Cursor does not have a sequence `{0}`".F(cursor));
}
}
}
}