Fixed, internal: in some cases it was possible to get incorrect resource when using Plug.GetResourceStream().

This commit is contained in:
MaxED 2015-04-10 21:48:12 +00:00
parent 70416cd95f
commit c7d61c22ba

View file

@ -136,6 +136,7 @@ namespace CodeImp.DoomBuilder.Plugins
public Stream GetResourceStream(string resourcename)
{
// Find a resource
resourcename = "." + resourcename; //mxd. Otherwise, we can get Properties.Resources.SuperCoolMode.png while searching for CoolMode.png
string[] resnames = asm.GetManifestResourceNames();
foreach(string rn in resnames)
{