X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FSkeleton.cpp;h=a2f919253d342a8844b55a3bbaf6054444abcc1b;hb=ad6e136b758996db756f7784e978426ba5a703dc;hp=91fdbd548441df9e216cb446e30631b03f70485d;hpb=b9a46d8e2b7e7e22c706e7dd3734f31015db4408;p=lugaru.git diff --git a/Source/Animation/Skeleton.cpp b/Source/Animation/Skeleton.cpp index 91fdbd5..a2f9192 100644 --- a/Source/Animation/Skeleton.cpp +++ b/Source/Animation/Skeleton.cpp @@ -1,6 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) +Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -717,6 +717,7 @@ void Skeleton::Load(const std::string& filename, const std::string& lowfilename, // read num_joints funpackf(tfile, "Bi", &num_joints); + joints.clear(); joints.resize(num_joints); // read info for each joint @@ -728,6 +729,7 @@ void Skeleton::Load(const std::string& filename, const std::string& lowfilename, funpackf(tfile, "Bi", &num_muscles); // allocate memory + muscles.clear(); muscles.resize(num_muscles); // for each muscle...