mirror of
https://github.com/Patoke/4JLibs.git
synced 2026-05-21 21:24:31 +00:00
Fix PNG text section not being written to file (#22)
This commit is contained in:
@@ -461,7 +461,7 @@ void CSaveGame::AddTextFieldToPNG(PBYTE pbImageData, DWORD dwImageBytes, PBYTE p
|
||||
|
||||
for (int j = 0; j < 8; ++j)
|
||||
{
|
||||
if (CSaveGame::szPNGHeader[j] != pbImageData[j])
|
||||
if (CSaveGame::szPNGHeader[j] != reinterpret_cast<char*>(pbImageData)[j])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user