mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-28 19:55:30 +01:00
Pass arguments by reference
This commit is contained in:
@@ -43,7 +43,7 @@ class ModNameStorer
|
||||
private:
|
||||
lua_State *L;
|
||||
public:
|
||||
ModNameStorer(lua_State *L_, const std::string modname):
|
||||
ModNameStorer(lua_State *L_, const std::string &modname):
|
||||
L(L_)
|
||||
{
|
||||
// Store current modname in registry
|
||||
|
||||
Reference in New Issue
Block a user