diff options
Diffstat (limited to 'lua/cmake/project.lua')
-rw-r--r-- | lua/cmake/project.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/cmake/project.lua b/lua/cmake/project.lua index 5524fbd..0edbb02 100644 --- a/lua/cmake/project.lua +++ b/lua/cmake/project.lua @@ -174,7 +174,7 @@ end --- Set current build option by index --- @param idx number function Project.set_current_build_option(idx) - local _size = #Project[current_config].build_options + local _size = #configs[current_config].build_options assert(not (idx < 1 or idx > _size), "Index is out of range. Index is " .. idx .. " for " .. _size .. "config(s)") configs[current_config].current_build = idx end |