mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02: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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user