X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FMuscle.cpp;h=da8c64c663a1f5cd14dfd88a9c84d20262d1656d;hb=eae73ddd7a006ee6de9ffb01f3ec5f8e5fdc6d85;hp=4485c5e64153bcd2492d8c8cf745da9acec2855e;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git
diff --git a/Source/Animation/Muscle.cpp b/Source/Animation/Muscle.cpp
index 4485c5e..da8c64c 100644
--- a/Source/Animation/Muscle.cpp
+++ b/Source/Animation/Muscle.cpp
@@ -25,22 +25,22 @@ along with Lugaru. If not, see .
extern float multiplier;
extern bool freeze;
-Muscle::Muscle()
+Muscle::Muscle() :
+ length(0),
+ targetlength(0),
+ parent1(0),
+ parent2(0),
+ maxlength(0),
+ minlength(0),
+ type(boneconnect),
+ visible(false),
+ rotate1(0), rotate2(0), rotate3(0),
+ lastrotate1(0), lastrotate2(0), lastrotate3(0),
+ oldrotate1(0), oldrotate2(0), oldrotate3(0),
+ newrotate1(0), newrotate2(0), newrotate3(0),
+
+ strength(0)
{
- length = 0;
- targetlength = 0;
- parent1 = 0;
- parent2 = 0;
- maxlength = 0;
- minlength = 0;
- type = boneconnect;
- visible = 0;
- rotate1 = 0, rotate2 = 0, rotate3 = 0;
- lastrotate1 = 0, lastrotate2 = 0, lastrotate3 = 0;
- oldrotate1 = 0, oldrotate2 = 0, oldrotate3 = 0;
- newrotate1 = 0, newrotate2 = 0, newrotate3 = 0;
-
- strength = 0;
}
void Muscle::load(FILE* tfile, int vertexNum, std::vector& joints)