Fix a stale pointer issue with Animation
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 May 2018 19:22:23 +0000 (22:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 May 2018 19:22:23 +0000 (22:22 +0300)
commit4a1e2b6a68095e6bb7c212be57abb5a1509739b9
treee3a899b9b372729e1b2a192468215c40c0c23142
parent3d8438922e24b787587d0c8f1883c5567a4af573
Fix a stale pointer issue with Animation

Now that keyframe information is stored in a vector it's no longer
guaranteed that pointers to them stay valid after push_back.  Re-link
all TimedKeyFrames if the vector gets reallocated.
source/animation.cpp
source/animation.h