Skip to content

Commit

Permalink
fix(client): incorrect global options logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Jun 1, 2024
1 parent c5e44fa commit 0025a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ local function startTargeting()
elseif menuChanged or hasTarget ~= 1 and hidden ~= totalOptions then
hasTarget = options.size

if currentMenu and options.__global[1] and options.__global[1].name ~= 'builtin:goback' then
if currentMenu and options.__global[1]?.name ~= 'builtin:goback' then
table.insert(options.__global, 1,
{
icon = 'fa-solid fa-circle-chevron-left',
Expand Down

0 comments on commit 0025a31

Please sign in to comment.