mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Settings: pass name to callbacks by reference
Spare some copies.
This commit is contained in:
@@ -806,7 +806,7 @@ public:
|
||||
m_fogEnabled = g_settings->getBool("enable_fog");
|
||||
}
|
||||
|
||||
static void SettingsCallback(const std::string name, void *userdata)
|
||||
static void SettingsCallback(const std::string &name, void *userdata)
|
||||
{
|
||||
reinterpret_cast<GameGlobalShaderConstantSetter*>(userdata)->onSettingsChange(name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user