Explorar o código

Fixed build warnings on MSVC14 x64 in the LWS format sources.

Jared Mulconry %!s(int64=8) %!d(string=hai) anos
pai
achega
335003a5a3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/LWSLoader.cpp

+ 1 - 1
code/LWSLoader.cpp

@@ -902,7 +902,7 @@ void LWSImporter::InternReadFile( const std::string& pFile, aiScene* pScene,
         anim->mTicksPerSecond = fps;
         anim->mDuration = last-(first-1); /* fixme ... zero or one-based?*/
 
-        anim->mChannels = new aiNodeAnim*[anim->mNumChannels = anims.size()];
+        anim->mChannels = new aiNodeAnim*[anim->mNumChannels = static_cast<unsigned int>(anims.size())];
         std::copy(anims.begin(),anims.end(),anim->mChannels);
     }