Fix map.png lock
This commit is contained in:
@@ -265,7 +265,8 @@ namespace OpenRA
|
|||||||
Uid = ComputeHash();
|
Uid = ComputeHash();
|
||||||
|
|
||||||
if (Container.Exists("map.png"))
|
if (Container.Exists("map.png"))
|
||||||
CustomPreview = new Bitmap(Container.GetContent("map.png"));
|
using (var dataStream = Container.GetContent("map.png"))
|
||||||
|
CustomPreview = new Bitmap(dataStream);
|
||||||
|
|
||||||
PostInit();
|
PostInit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user