Jelajahi Sumber

[cpp] Fix compliation on VS2017, closes #2645

Mario Zechner 10 bulan lalu
induk
melakukan
eb6a973f98
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      spine-cpp/spine-cpp/src/spine/InheritTimeline.cpp

+ 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;
 		return;
 	}
 	}
 	int idx = Animation::search(_frames, time, ENTRIES) + INHERIT;
 	int idx = Animation::search(_frames, time, ENTRIES) + INHERIT;
-	bone->_inherit = (Inherit) _frames[idx];
+	bone->_inherit = static_cast<Inherit>(_frames[idx]);
 }
 }