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

AndywinXp noreply at scummvm.org
Wed Feb 4 18:07:46 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:
c36957880b JANITORIAL: SCUMM: HE: do not cast away constness


Commit: c36957880b64054295f30ce8221b85bd3273b17e
    https://github.com/scummvm/scummvm/commit/c36957880b64054295f30ce8221b85bd3273b17e
Author: Michael (michael_kuerbis at web.de)
Date: 2026-02-04T19:07:42+01:00

Commit Message:
JANITORIAL: SCUMM: HE: do not cast away constness

Changed paths:
    engines/scumm/he/wiz_he.cpp


diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index e19f117e051..b068c7dbcb2 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -2424,7 +2424,7 @@ void Wiz::processWizImageFontEndCmd(const WizImageCommand *params) {
 void Wiz::processWizImageFontCreateCmd(const WizImageCommand *params) {
 	// Used for TTF text in FreddisFunShop/PuttsFunShop/SamsFunShop
 	if (!(((ScummEngine_v99he *)_vm)->_heFont->createFont(params->image, 
-														  (char *)params->fontProperties.fontName,
+														  reinterpret_cast<const char *>(params->fontProperties.fontName),
 														  params->fontProperties.fgColor,
 														  params->fontProperties.bgColor,
 														  params->fontProperties.style,
@@ -2439,7 +2439,7 @@ void Wiz::processWizImageFontRenderCmd(const WizImageCommand *params) {
 															params->state,
 															params->fontProperties.xPos,
 															params->fontProperties.yPos,
-															(char *)params->fontProperties.string))) {
+															reinterpret_cast<const char *>(params->fontProperties.string)))) {
 		warning("Wiz::processWizImageFontRenderCmd(): Couldn't render font");
 	}
 }




More information about the Scummvm-git-logs mailing list