diff options
Diffstat (limited to 'tools/gfx/flag-combiner.cpp')
| -rw-r--r-- | tools/gfx/flag-combiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gfx/flag-combiner.cpp b/tools/gfx/flag-combiner.cpp index 04617368a..5ea577f11 100644 --- a/tools/gfx/flag-combiner.cpp +++ b/tools/gfx/flag-combiner.cpp @@ -38,7 +38,7 @@ uint32_t FlagCombiner::getCombination(int index) const uint32_t combination = 0; uint32_t bit = 1; - for (int i = 0; i < m_numChangingBits; ++i, bit += bit) + for (int i = m_numChangingBits - 1; i >= 0; --i, bit += bit) { combination |= ((bit & index) ? m_changingBits[i] : 0); } |
