Commit 8f897d48 by Francois Gygi

initialize with zero in ctor


git-svn-id: http://qboxcode.org/svn/qb/trunk@476 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 4fce34de
......@@ -3,7 +3,7 @@
// ExtStress.h
//
////////////////////////////////////////////////////////////////////////////////
// $Id: ExtStress.h,v 1.1 2004-02-04 19:52:27 fgygi Exp $
// $Id: ExtStress.h,v 1.2 2006-11-04 20:20:52 fgygi Exp $
#ifndef EXTSTRESS_H
#define EXTSTRESS_H
......@@ -50,6 +50,10 @@ class ExtStress : public Var
return st.str();
}
ExtStress(Sample *sample) : s(sample) {};
ExtStress(Sample *sample) : s(sample)
{
for ( int i = 0; i < 6; i++ )
s->ctrl.ext_stress[i] = 0.0;
};
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment