diff options
author | Nipun Garg | 2019-06-26 22:06:10 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:00 +0200 |
commit | cbf4888e2f63604c66b9398572dbc81c5f0e4342 (patch) | |
tree | 26d894643ada20545fc770499b84c3e78aaf09fa /engines/hdb | |
parent | a070e60617041a49a159706532b4169c35f56395 (diff) | |
download | scummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.tar.gz scummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.tar.bz2 scummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.zip |
HDB: Fix index for _charInfoBlocks
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index c35514c07d..1232f1c98f 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -571,7 +571,7 @@ void DrawMan::getDimensions(const char *string, int *pixelsWide, int *lines) { for (int i = 0; i < (int)strlen(string); i++) { c = string[i]; - width += _charInfoBlocks[i]->width + _fontHeader.kerning + kFontIncrement; + width += _charInfoBlocks[c]->width + _fontHeader.kerning + kFontIncrement; if (c == ' ') width += kFontSpace; |