History

fixed use of uninitialized variable warning

ZappoMan committed 12 years ago

Commit d6ebbd81 parent a95e5481 file · +1 −1Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 1 file). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+1−1
@@ -1743,7 +1743,7 @@ int VoxelAugmentVisitor::visit(MetavoxelInfo& info) { · 1742 unmodified lines
1743 for (int z = 0; z < expanded; z++) {1743 for (int z = 0; z < expanded; z++) {
1744 const QRgb* colorY = colorZ;1744 const QRgb* colorY = colorZ;
1745 for (int y = 0; y < expanded; y++) {1745 for (int y = 0; y < expanded; y++) {
1746 int lastIndex;1746 int lastIndex = 0;
1747 const QRgb* colorX = colorY;1747 const QRgb* colorX = colorY;
1748 for (int x = 0; x < expanded; x++) {1748 for (int x = 0; x < expanded; x++) {
1749 int alpha0 = colorX[0] >> ALPHA_OFFSET;1749 int alpha0 = colorX[0] >> ALPHA_OFFSET;