Don't try to lookup '' strings in chrome collections.
This commit is contained in:
@@ -88,6 +88,9 @@ namespace OpenRA.Graphics
|
||||
|
||||
public static Sprite GetImage(string collectionName, string imageName)
|
||||
{
|
||||
if (string.IsNullOrEmpty(collectionName))
|
||||
return null;
|
||||
|
||||
// Cached sprite
|
||||
Dictionary<string, Sprite> cachedCollection;
|
||||
Sprite sprite;
|
||||
|
||||
Reference in New Issue
Block a user