diff --git a/MoltenVK/MoltenVK/Utility/MVKBitArray.h b/MoltenVK/MoltenVK/Utility/MVKBitArray.h index e7959f7c0..6f9afa3dd 100755 --- a/MoltenVK/MoltenVK/Utility/MVKBitArray.h +++ b/MoltenVK/MoltenVK/Utility/MVKBitArray.h @@ -155,7 +155,7 @@ class MVKBitArray { bool enumerateEnabledBits(bool shouldClear, std::function func) { for (size_t bitIdx = getIndexOfFirstSetBit(shouldClear); bitIdx < _bitCount; - getIndexOfFirstSetBit(++bitIdx, shouldClear)) { + bitIdx = getIndexOfFirstSetBit(++bitIdx, shouldClear)) { if ( !func(bitIdx) ) { return false; } }