Browse Source

SceneGraph: fix assertion expression.

We should have used == instead of =, the counter is set to that value
later anyway, so this didn't break anything... but the assert was
useless. Hopefully it won't fire each time now :-)
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
c2a2ca88e4
  1. 2
      src/SceneGraph/Object.hpp

2
src/SceneGraph/Object.hpp

@ -282,7 +282,7 @@ template<class Transformation> std::vector<typename Transformation::DataType> Ob
for(auto i: jointObjects) {
/* All not-already cleaned objects (...duplicate occurences) should
have joint mark */
CORRADE_INTERNAL_ASSERT(i->counter = 0xFFFFu || i->flags & Flag::Joint);
CORRADE_INTERNAL_ASSERT(i->counter == 0xFFFFu || i->flags & Flag::Joint);
i->flags &= ~Flag::Joint;
i->counter = 0xFFFFu;
}

Loading…
Cancel
Save