Prechádzať zdrojové kódy

[cpp] Fix compliation on VS2017, closes #2645

Mario Zechner 10 mesiacov pred
rodič
commit
eb6a973f98

+ 1 - 1
spine-cpp/spine-cpp/src/spine/InheritTimeline.cpp

@@ -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]);
 }