mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Update BitmapHandler.cpp
This commit is contained in:
parent
fef3b7652b
commit
640ebcdca4
@ -117,7 +117,7 @@ namespace BitmapHandler
|
||||
{
|
||||
logGlobal->error("Failed to open %s as H3 PCX!", fname);
|
||||
}
|
||||
return image;
|
||||
return image.copy(); //copy must be returned here because buffer readFile.first used to build QImage will be cleaned after this line
|
||||
}
|
||||
else
|
||||
{ //loading via QImage
|
||||
|
Loading…
Reference in New Issue
Block a user