[#17703] Segfault on fluid activation.
authorDaniel Genrich <daniel.genrich@gmx.net>
Mon, 29 Sep 2008 14:44:12 +0000 (14:44 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Mon, 29 Sep 2008 14:44:12 +0000 (14:44 +0000)
intern/elbeem/intern/solver_control.cpp

index 15b9468ed0d0e66e5358bad19df0f7a23e29fba9..d3f5598e6dc2253c4bb5c885536ec19f1ed38235 100644 (file)
@@ -420,6 +420,10 @@ LbmFsgrSolver::handleCpdata()
                return;
        }
        
+       // check if we have control objects
+       if(mpControl->mCons.size()==0)
+               return;
+       
        if((mpControl->mCpUpdateInterval<1) || (this->mStepCnt%mpControl->mCpUpdateInterval==0)) {
                // do full reinit later on... 
        }