aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2016-03-07 23:48:13 -0600
committerColin Snover2016-03-07 23:48:13 -0600
commit729d0182d81a1f1d7df43a4fed382c3f1eda944d (patch)
tree642b3f0ac2da3bb934483a37fcc0334ad8155c32
parent0afb056e2de6e3ca2801e7d13d4d5f2847803518 (diff)
downloadscummvm-rg350-729d0182d81a1f1d7df43a4fed382c3f1eda944d.tar.gz
scummvm-rg350-729d0182d81a1f1d7df43a4fed382c3f1eda944d.tar.bz2
scummvm-rg350-729d0182d81a1f1d7df43a4fed382c3f1eda944d.zip
SCI32: Add unnecessary micro-optimisation to palette merging code
-rw-r--r--engines/sci/graphics/palette32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp
index 2957c72643..9d828ddac9 100644
--- a/engines/sci/graphics/palette32.cpp
+++ b/engines/sci/graphics/palette32.cpp
@@ -70,7 +70,7 @@ GfxPalette32::~GfxPalette32() {
}
inline void mergePaletteInternal(Palette *const to, const Palette *const from) {
- for (int i = 0; i < ARRAYSIZE(to->colors); ++i) {
+ for (int i = 0, len = ARRAYSIZE(to->colors); i < len; ++i) {
if (from->colors[i].used) {
to->colors[i] = from->colors[i];
}