X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=cb62622f0710f4984aa2e846e5797cde223dd139;hb=8a32dc9e4e1011b10f009e999d7d008aa2711d8a;hp=ebdde320af4f487e1784ac8ecb80084db61278ff;hpb=bb10d5d29efb774db509c87063f1294980b127c8;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index ebdde32..cb62622 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -328,8 +328,8 @@ public: inline Joint& joint(int bodypart) { return skeleton.joints[skeleton.jointlabels[bodypart]]; } inline XYZ& jointPos(int bodypart) { return joint(bodypart).position; } inline XYZ& jointVel(int bodypart) { return joint(bodypart).velocity; } - inline AnimationFrame& currentFrame() { return Animation::animations[animCurrent].frames[frameCurrent]; } - inline AnimationFrame& targetFrame() { return Animation::animations[animTarget].frames[frameTarget]; } + inline AnimationFrame& currentFrame() { return Animation::animations.at(animCurrent).frames.at(frameCurrent); } + inline AnimationFrame& targetFrame() { return Animation::animations.at(animTarget).frames.at(frameTarget); } void CheckKick();