aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorEugene Sandulenko2018-06-29 09:13:27 +0200
committerEugene Sandulenko2018-06-29 09:14:17 +0200
commitec084129259e41f8e37e84424b951329d37a02af (patch)
tree5f4bf8457958af88fc2800f8d45ad9ea56cc2105 /engines/sci/engine
parentc76c0522591004d3e79a4990099ca2122a6414d9 (diff)
downloadscummvm-rg350-ec084129259e41f8e37e84424b951329d37a02af.tar.gz
scummvm-rg350-ec084129259e41f8e37e84424b951329d37a02af.tar.bz2
scummvm-rg350-ec084129259e41f8e37e84424b951329d37a02af.zip
SCI: Fix shadowing warning
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/segment.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h
index 14744e3e39..9a921d633a 100644
--- a/engines/sci/engine/segment.h
+++ b/engines/sci/engine/segment.h
@@ -508,11 +508,11 @@ public:
* Returns the maximum number of bytes that can be stored in the array.
*/
uint16 byteSize() const {
- uint16 size = _size;
+ uint16 size1 = _size;
if (_type == kArrayTypeID || _type == kArrayTypeInt16) {
- size *= sizeof(uint16);
+ size1 *= sizeof(uint16);
}
- return size;
+ return size1;
}
/**