X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FAnimation%2FJoint.cpp;h=87d0a33678821f28b40f110ad2548b2eeb516fb6;hb=35048f2f8374d1457a5cef19ea3af599037b6935;hp=8d7caf917313a8260ad022cf05f0b69a4c0c9106;hpb=8b6e8f3ad7390309795eb35c0959264cb7924402;p=lugaru.git diff --git a/Source/Animation/Joint.cpp b/Source/Animation/Joint.cpp index 8d7caf9..87d0a33 100644 --- a/Source/Animation/Joint.cpp +++ b/Source/Animation/Joint.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. @@ -52,6 +52,8 @@ void Joint::load(FILE* tfile, std::vector& joints) funpackf(tfile, "Bi", &parentID); if (hasparent) { parent = &joints[parentID]; + } else { + parent = nullptr; } velocity = 0; oldposition = position;