Make sure color returns to normal after a damage flash (#7332)

master
lhofhansl 2018-05-14 03:03:39 -07:00 committed by Loïc Blot
parent 9cc341e91f
commit 0cecc1d1a9
2 changed files with 3 additions and 3 deletions

View File

@ -990,7 +990,7 @@ void GenericCAO::updateTexturePos()
}
}
void GenericCAO::updateTextures(const std::string &mod)
void GenericCAO::updateTextures(std::string mod)
{
ITextureSource *tsrc = m_client->tsrc();

View File

@ -198,8 +198,8 @@ public:
void updateTexturePos();
// std::string copy is mandatory as mod can be a class member and there is a swap
// on those class members
void updateTextures(const std::string &mod);
// on those class members... do NOT pass by reference
void updateTextures(std::string mod);
void updateAnimation();