Fix PNG text section not being written to file (#22)
This commit is contained in:
1 file changed
+1
-1
@@ -461,7 +461,7 @@ void CSaveGame::AddTextFieldToPNG(PBYTE pbImageData, DWORD dwImageBytes, PBYTE p
|
|||||||
|
|
||||||
for (int j = 0; j < 8; ++j)
|
for (int j = 0; j < 8; ++j)
|
||||||
{
|
{
|
||||||
if (CSaveGame::szPNGHeader[j] != pbImageData[j])
|
if (CSaveGame::szPNGHeader[j] != reinterpret_cast<char*>(pbImageData)[j])
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user