From c2a2ca88e4b1be37c0058510f9942aadb616dbda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Dec 2013 17:37:46 +0100 Subject: [PATCH] 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 :-) --- src/SceneGraph/Object.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SceneGraph/Object.hpp b/src/SceneGraph/Object.hpp index 2cc163593..b050a7a96 100644 --- a/src/SceneGraph/Object.hpp +++ b/src/SceneGraph/Object.hpp @@ -282,7 +282,7 @@ template std::vector 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; }