[cpp] Fix compliation on VS2017, closes #2645

This commit is contained in:
Mario Zechner 2024-10-02 12:34:23 +02:00
parent 7672c4a32d
commit eb6a973f98

View File

@ -77,5 +77,5 @@ void InheritTimeline::apply(Skeleton &skeleton, float lastTime, float time, Vect
return;
}
int idx = Animation::search(_frames, time, ENTRIES) + INHERIT;
bone->_inherit = (Inherit) _frames[idx];
bone->_inherit = static_cast<Inherit>(_frames[idx]);
}