]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Animation/Joint.cpp
Fixes #88 Fixed joints and muscles loading for an existing skeleton object
[lugaru.git] / Source / Animation / Joint.cpp
index b6ad7070b81530652ca3cc2c223729a452ecf864..87d0a33678821f28b40f110ad2548b2eeb516fb6 100644 (file)
@@ -52,6 +52,8 @@ void Joint::load(FILE* tfile, std::vector<Joint>& joints)
     funpackf(tfile, "Bi", &parentID);
     if (hasparent) {
         parent = &joints[parentID];
+    } else {
+        parent = nullptr;
     }
     velocity = 0;
     oldposition = position;