1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Fix persistent ^[brighten after damage again (#5739)

The old texture modifier is restored by passing `m_previous_texture_modifier`.
Either copy it manually or let the function parameter do that.

Victims so far:
8e0b80a Apr 2018
eb2bda7 May 2019
This commit is contained in:
SmallJoker 2019-05-26 09:54:23 +02:00
parent 40dadecb6e
commit a1459a9eac
2 changed files with 6 additions and 15 deletions

View file

@ -225,7 +225,9 @@ public:
void updateTexturePos();
void updateTextures(const std::string &modref);
// ffs this HAS TO BE a string copy! See #5739 if you think otherwise
// Reason: updateTextures(m_previous_texture_modifier);
void updateTextures(std::string mod);
void updateAnimation();