aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-26 22:06:10 +0530
committerEugene Sandulenko2019-09-03 17:17:00 +0200
commitcbf4888e2f63604c66b9398572dbc81c5f0e4342 (patch)
tree26d894643ada20545fc770499b84c3e78aaf09fa /engines
parenta070e60617041a49a159706532b4169c35f56395 (diff)
downloadscummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.tar.gz
scummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.tar.bz2
scummvm-rg350-cbf4888e2f63604c66b9398572dbc81c5f0e4342.zip
HDB: Fix index for _charInfoBlocks
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/draw-manager.cpp2
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;