summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-07 15:55:23 +0100
committermadmaxoft <github@xoft.cz>2014-01-07 17:07:48 +0100
commitbcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf (patch)
tree00bc4c9743972cf1f1852e227391f2a61dc7ae5c /src
parentMerge pull request #513 from worktycho/FreeBSDDynamicLink (diff)
downloadcuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar.gz
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar.bz2
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar.lz
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar.xz
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.tar.zst
cuberite-bcd41dc1aafcbfc12803e5326f80ee0b5ebf7fdf.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index a684620f3..83351591c 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -297,7 +297,7 @@ void cLuaState::Push(const AString & a_String)
{
ASSERT(IsValid());
- tolua_pushcppstring(m_LuaState, a_String);
+ lua_pushlstring(m_LuaState, a_String.data(), a_String.size());
m_NumCurrentFunctionArgs += 1;
}