mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 09:01:22 +00:00
Fix crash when tga image loader succeeds in loading a 0x0 image
Copy resource bitmaps before using them on a worker thread
This commit is contained in:
parent
e19b2912f3
commit
44d972c876
4 changed files with 14 additions and 5 deletions
|
@ -39,7 +39,7 @@ namespace CodeImp.DoomBuilder.Data
|
|||
// Initialize
|
||||
this.width = 0;
|
||||
this.height = 0;
|
||||
this.loadbitmap = Properties.Resources.UnknownImage;
|
||||
this.loadbitmap = new Bitmap(Properties.Resources.UnknownImage);
|
||||
SetName("");
|
||||
|
||||
LoadImageNow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue