Merge pull request #10989 from Mailaender/empty-chrome-collection

Fixed Could not find collection '' spam in debug.log
This commit is contained in:
abcdefg30
2016-04-01 00:37:51 +02:00

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;