[Scummvm-git-logs] scummvm branch-2-8 -> a056ccf0d445c4aa4bac85567b70d8db1ecc68da

eriktorbjorn noreply at scummvm.org
Tue Dec 5 17:57:47 UTC 2023


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

Summary:
a056ccf0d4 SCUMM: Fix off-by-one error in _unicodeToMacRoman[] declaration


Commit: a056ccf0d445c4aa4bac85567b70d8db1ecc68da
    https://github.com/scummvm/scummvm/commit/a056ccf0d445c4aa4bac85567b70d8db1ecc68da
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2023-12-05T18:57:05+01:00

Commit Message:
SCUMM: Fix off-by-one error in _unicodeToMacRoman[] declaration

One slot each for 160-255 is 96 slots, not 95.

Changed paths:
    engines/scumm/gfx_mac.h


diff --git a/engines/scumm/gfx_mac.h b/engines/scumm/gfx_mac.h
index cc1151df8ec..a7142ab09ed 100644
--- a/engines/scumm/gfx_mac.h
+++ b/engines/scumm/gfx_mac.h
@@ -51,7 +51,7 @@ protected:
 	Common::HashMap<int, const Graphics::Font *> _fonts;
 	int _gameFontId = -1;
 
-	byte _unicodeToMacRoman[95];
+	byte _unicodeToMacRoman[96];
 
 	enum Color {
 		kBlack = 0,




More information about the Scummvm-git-logs mailing list