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

This commit is contained in:
Alex authored and GitHub committed 2026-04-28 02:43:48 -04:00
1 parent f567d33ccb
commit 8fb036f6d6
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)
{
if (CSaveGame::szPNGHeader[j] != pbImageData[j])
if (CSaveGame::szPNGHeader[j] != reinterpret_cast<char*>(pbImageData)[j])
{
return;
}