Don't try to lookup '' strings in chrome collections.

This commit is contained in:
Matthias Mailänder
2016-03-28 13:38:29 +02:00
parent b162afee6b
commit f6c7e3debb

View File

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