summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorSelat <LongExampleTestName@gmail.com>2014-02-27 23:12:59 +0300
committerShadowNinja <shadowninja@minetest.net>2014-03-12 17:34:48 -0400
commit7cac34c807b6f38eaca3bc8296566493c8874e03 (patch)
tree0403e9aae7fc96343c3ecba138ba9d06421c506e /src/script
parent2bc2ce3bd159cc7aa7054059ad413e93d05d0211 (diff)
downloadminetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.gz
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.tar.bz2
minetest-7cac34c807b6f38eaca3bc8296566493c8874e03.zip
Pass arguments by reference
Diffstat (limited to 'src/script')
-rw-r--r--src/script/cpp_api/s_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_base.cpp b/src/script/cpp_api/s_base.cpp
index 898271743..e28a34eee 100644
--- a/src/script/cpp_api/s_base.cpp
+++ b/src/script/cpp_api/s_base.cpp
@@ -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