diff options
author | Colin Snover | 2017-08-24 21:46:16 -0500 |
---|---|---|
committer | Colin Snover | 2017-08-25 18:53:20 -0500 |
commit | 3ef080299336e1e1665deceea5539c34d4093024 (patch) | |
tree | a01ab389b21a741a5b26cb2438cf33f7dce63954 /engines | |
parent | c4bf8575c1740ffca017b7c3e731944747726d00 (diff) | |
download | scummvm-rg350-3ef080299336e1e1665deceea5539c34d4093024.tar.gz scummvm-rg350-3ef080299336e1e1665deceea5539c34d4093024.tar.bz2 scummvm-rg350-3ef080299336e1e1665deceea5539c34d4093024.zip |
TITANIC: Fix buffer overflow when getting first class upgrade
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/gfx/text_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/gfx/text_control.cpp b/engines/titanic/gfx/text_control.cpp index d1d2e1c530..b0d1cd9ab2 100644 --- a/engines/titanic/gfx/text_control.cpp +++ b/engines/titanic/gfx/text_control.cpp @@ -263,7 +263,7 @@ void CTextControl::remapColors(uint count, uint *srcColors, uint *destColors) { for (uint index = 0; index < count; ++index) { if (color == srcColors[index]) { // Found a match, so replace the color - setLineColor(lineNum, destColors[lineNum]); + setLineColor(lineNum, destColors[index]); break; } } |