Skip to content

Commit 0cecc1d

Browse files
lhofhanslnerzhul
authored andcommittedMay 14, 2018
Make sure color returns to normal after a damage flash (#7332)
1 parent 9cc341e commit 0cecc1d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

Diff for: ‎src/content_cao.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ void GenericCAO::updateTexturePos()
990990
}
991991
}
992992

993-
void GenericCAO::updateTextures(const std::string &mod)
993+
void GenericCAO::updateTextures(std::string mod)
994994
{
995995
ITextureSource *tsrc = m_client->tsrc();
996996

Diff for: ‎src/content_cao.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ class GenericCAO : public ClientActiveObject
198198
void updateTexturePos();
199199

200200
// 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);
201+
// on those class members... do NOT pass by reference
202+
void updateTextures(std::string mod);
203203

204204
void updateAnimation();
205205

0 commit comments

Comments
 (0)
Please sign in to comment.