We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cc341e commit 0cecc1dCopy full SHA for 0cecc1d
src/content_cao.cpp
@@ -990,7 +990,7 @@ void GenericCAO::updateTexturePos()
990
}
991
992
993
-void GenericCAO::updateTextures(const std::string &mod)
+void GenericCAO::updateTextures(std::string mod)
994
{
995
ITextureSource *tsrc = m_client->tsrc();
996
src/content_cao.h
@@ -198,8 +198,8 @@ class GenericCAO : public ClientActiveObject
198
void updateTexturePos();
199
200
// std::string copy is mandatory as mod can be a class member and there is a swap
201
- // on those class members
202
- void updateTextures(const std::string &mod);
+ // on those class members... do NOT pass by reference
+ void updateTextures(std::string mod);
203
204
void updateAnimation();
205
0 commit comments