1
0

Fixed Lua bindings for cFile:GetFolderContents().

This commit is contained in:
madmaxoft 2013-11-23 20:26:23 +01:00
parent 94e14e1ace
commit e662a31094

View File

@ -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);