summaryrefslogtreecommitdiffstats
path: root/source/ManualBindings.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-23 20:26:23 +0100
committermadmaxoft <github@xoft.cz>2013-11-23 20:26:23 +0100
commite662a3109466011514d154373ba9f39066e4a80e (patch)
tree84135976f9312e9945b37cf0b48b4d2e1441b3c3 /source/ManualBindings.cpp
parentAdded cFile:ReadWholeFile() to Lua API. (diff)
downloadcuberite-e662a3109466011514d154373ba9f39066e4a80e.tar
cuberite-e662a3109466011514d154373ba9f39066e4a80e.tar.gz
cuberite-e662a3109466011514d154373ba9f39066e4a80e.tar.bz2
cuberite-e662a3109466011514d154373ba9f39066e4a80e.tar.lz
cuberite-e662a3109466011514d154373ba9f39066e4a80e.tar.xz
cuberite-e662a3109466011514d154373ba9f39066e4a80e.tar.zst
cuberite-e662a3109466011514d154373ba9f39066e4a80e.zip
Diffstat (limited to '')
-rw-r--r--source/ManualBindings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/ManualBindings.cpp b/source/ManualBindings.cpp
index 967b03ee7..02b3347f6 100644
--- a/source/ManualBindings.cpp
+++ b/source/ManualBindings.cpp
@@ -183,7 +183,7 @@ static int tolua_cFile_GetFolderContents(lua_State * tolua_S)
return 0;
}
- AString Folder = (AString)tolua_tocppstring(LuaState, 1, 0);
+ AString Folder = (AString)tolua_tocppstring(LuaState, 2, 0);
AStringVector Contents = cFile::GetFolderContents(Folder);
LuaState.Push(Contents);