aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/simon/items.cpp12
-rw-r--r--engines/simon/simon.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp
index 327535130d..63350e061a 100644
--- a/engines/simon/items.cpp
+++ b/engines/simon/items.cpp
@@ -694,12 +694,12 @@ void SimonEngine::o_msg() {
void SimonEngine::o_addTextBox() {
// 65: add hit area
- int id = getVarOrWord();
- int x = getVarOrWord();
- int y = getVarOrWord();
- int w = getVarOrWord();
- int h = getVarOrWord();
- int number = getVarOrByte();
+ uint id = getVarOrWord();
+ uint x = getVarOrWord();
+ uint y = getVarOrWord();
+ uint w = getVarOrWord();
+ uint h = getVarOrWord();
+ uint number = getVarOrByte();
if (number < _numTextBoxes)
defineBox(id, x, y, w, h, (number << 8) + 129, 208, _dummyItem2);
}
diff --git a/engines/simon/simon.h b/engines/simon/simon.h
index 43838358a5..a06581ac1b 100644
--- a/engines/simon/simon.h
+++ b/engines/simon/simon.h
@@ -301,7 +301,7 @@ protected:
uint _printCharCurPos, _printCharMaxPos, _printCharPixelCount;
uint _numLettersToPrint;
- int _numTextBoxes;
+ uint _numTextBoxes;
uint _lastTime;
uint _clockStopped, _gameStoppedClock;