mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +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);
|
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
|
else
|
||||||
{ //loading via QImage
|
{ //loading via QImage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user