From 7f9615e70dea2742159ea42e38d0e6c63e52cd9d Mon Sep 17 00:00:00 2001
From: asantamaria <asantamaria@iri.upc.edu>
Date: Thu, 21 Jun 2018 11:32:38 +0200
Subject: [PATCH] FIX WOLF_DEBUG_COND to compile as RELEASE

---
 src/solver/solver_manager.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/solver/solver_manager.cpp b/src/solver/solver_manager.cpp
index b26b977a5..5dcde9d69 100644
--- a/src/solver/solver_manager.cpp
+++ b/src/solver/solver_manager.cpp
@@ -55,9 +55,7 @@ void SolverManager::update()
       }
       case StateBlock::Notification::STATE_UPDATE:
       {
-        const bool registered = state_blocks_.find(state)!=state_blocks_.end();
-
-        WOLF_DEBUG_COND(!registered,
+        WOLF_DEBUG_COND(state_blocks_.find(state)==state_blocks_.end(),
                         "Updating the state of an unregistered StateBlock !");
 
         // This will throw if StateBlock wasn't registered
-- 
GitLab