summaryrefslogtreecommitdiffstats
path: root/src/Bindings/ManualBindings.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-08-16 13:02:08 +0200
committerMattes D <github@xoft.cz>2016-08-22 20:09:56 +0200
commit9493488e48c49a54e9b1ec892107735de6736c13 (patch)
treee8f2756003714cf54ebda9168016130b5c0a1432 /src/Bindings/ManualBindings.cpp
parentcLuaState: Added support for optional params and AStringMap values. (diff)
downloadcuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar.gz
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar.bz2
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar.lz
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar.xz
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.tar.zst
cuberite-9493488e48c49a54e9b1ec892107735de6736c13.zip
Diffstat (limited to 'src/Bindings/ManualBindings.cpp')
-rw-r--r--src/Bindings/ManualBindings.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Bindings/ManualBindings.cpp b/src/Bindings/ManualBindings.cpp
index 8927b0b19..038c67995 100644
--- a/src/Bindings/ManualBindings.cpp
+++ b/src/Bindings/ManualBindings.cpp
@@ -2058,8 +2058,7 @@ static int tolua_cUrlParser_Parse(lua_State * a_LuaState)
if (!res.first)
{
// Error, return nil and error msg:
- L.PushNil();
- L.Push(res.second);
+ L.Push(cLuaState::Nil, res.second);
return 2;
}
L.Push(scheme, username, password, host, port, path, query, fragment);
@@ -2099,8 +2098,7 @@ static int tolua_cUrlParser_ParseAuthorityPart(lua_State * a_LuaState)
if (!res.first)
{
// Error, return nil and error msg:
- L.PushNil();
- L.Push(res.second);
+ L.Push(cLuaState::Nil, res.second);
return 2;
}
L.Push(username, password, host, port);