diff options
author | Max Horn | 2010-07-12 11:09:29 +0000 |
---|---|---|
committer | Max Horn | 2010-07-12 11:09:29 +0000 |
commit | 20ef5c562335e1f3fa45307b3f43065da0c4dfa4 (patch) | |
tree | 80d71c42c8e00df5f4bdb23401f660ff34fb96fc /engines/sci/engine/kgraphics.cpp | |
parent | e782fec85aa48b8b32f4e1e1d3677411d99899ae (diff) | |
download | scummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.tar.gz scummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.tar.bz2 scummvm-rg350-20ef5c562335e1f3fa45307b3f43065da0c4dfa4.zip |
SCI: Fix warning
svn-id: r50818
Diffstat (limited to 'engines/sci/engine/kgraphics.cpp')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index e621e1b85a..29f7565ef9 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -790,7 +790,7 @@ void _k_GenericDrawControl(EngineState *s, reg_t controlObject, bool hilite) { mode = readSelectorValue(s->_segMan, controlObject, SELECTOR(mode)); maxChars = readSelectorValue(s->_segMan, controlObject, SELECTOR(max)); cursorPos = readSelectorValue(s->_segMan, controlObject, SELECTOR(cursor)); - if (cursorPos > text.size()) { + if (cursorPos > (int)text.size()) { // if cursor is outside of text, adjust accordingly cursorPos = text.size(); writeSelectorValue(s->_segMan, controlObject, SELECTOR(cursor), cursorPos); |