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 2018eb2bda7
May 2019
This commit is contained in:
parent
40dadecb6e
commit
a1459a9eac
2 changed files with 6 additions and 15 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue