From 8fb036f6d6ca5aa5aa2e20633638d6232a58d508 Mon Sep 17 00:00:00 2001 From: Alex <56621824+dognews@users.noreply.github.com> Date: Mon, 27 Apr 2026 23:43:48 -0700 Subject: [PATCH] Fix PNG text section not being written to file (#22) --- impls/Windows_Libs/Storage/src/STO_SaveGame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impls/Windows_Libs/Storage/src/STO_SaveGame.cpp b/impls/Windows_Libs/Storage/src/STO_SaveGame.cpp index c6affe4..5783c76 100644 --- a/impls/Windows_Libs/Storage/src/STO_SaveGame.cpp +++ b/impls/Windows_Libs/Storage/src/STO_SaveGame.cpp @@ -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(pbImageData)[j]) { return; }