Selaa lähdekoodia

Merge pull request #800 from pkholland/master

Can't add integer to string pointer
Kim Kulling 9 vuotta sitten
vanhempi
commit
d094dfc3a1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      code/ColladaParser.cpp

+ 1 - 1
code/ColladaParser.cpp

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