Explorar o código

Merge pull request #800 from pkholland/master

Can't add integer to string pointer
Kim Kulling %!s(int64=9) %!d(string=hai) anos
pai
achega
d094dfc3a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/ColladaParser.cpp

+ 1 - 1
code/ColladaParser.cpp

@@ -297,7 +297,7 @@ void ColladaParser::ReadAnimationClipLibrary()
 				else if (indexID >= 0)
 					animName = mReader->getAttributeValue(indexID);
 				else
-					animName = "animation_" + mAnimationClipLibrary.size();
+					animName = std::string("animation_") + std::to_string(mAnimationClipLibrary.size());
 
 				std::pair<std::string, std::vector<std::string> > clip;