Fix PNG text section not being written to file (#22)

This commit is contained in:
Alex
2026-04-27 23:43:48 -07:00
committed by GitHub
parent f567d33ccb
commit 8fb036f6d6

View File

@@ -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;
}