[Scummvm-git-logs] scummvm master -> a6a5335f5263600892a6c465616efc0879cb9bf2

dreammaster noreply at scummvm.org
Sat Oct 10 06:41:27 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
a6a5335f52 MADS: Fix unaligned mem access in font code


Commit: a6a5335f5263600892a6c465616efc0879cb9bf2
    https://github.com/scummvm/scummvm/commit/a6a5335f5263600892a6c465616efc0879cb9bf2
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-10-10T17:41:18+11:00

Commit Message:
MADS: Fix unaligned mem access in font code

Changed paths:
    engines/mads/core/font.cpp


diff --git a/engines/mads/core/font.cpp b/engines/mads/core/font.cpp
index 549e2179e43..8d00115bc2f 100644
--- a/engines/mads/core/font.cpp
+++ b/engines/mads/core/font.cpp
@@ -130,7 +130,7 @@ int font_write(FontPtr font, Buffer *target, const char *out_string,
 	if (strlen(out_string) == 0)
 		return x;
 
-	*(uint32 *)&colors[0] = *(uint32 *)&font_colors[0];
+	memcpy(colors, font_colors, sizeof(colors));
 
 	Common::strcpy_s(temp_buf, out_string);
 




More information about the Scummvm-git-logs mailing list