Fix global declaration

This commit is contained in:
Brandon Sturgeon 2023-09-29 17:49:54 -07:00
parent b3f3f4bb2a
commit 5b0a3d83f5
No known key found for this signature in database
GPG Key ID: D2B85AB23C6D80C2

View File

@ -36,7 +36,7 @@ end
function ulx.addToHelpManually( category, cmd, string, access_tag )
ulx.cmdsByCategory[ category ] = ulx.cmdsByCategory[ category ] or {}
for i=#ulx.cmdsByCategory[ category ],1,-1 do
existingCmd = ulx.cmdsByCategory[ category ][i]
local existingCmd = ulx.cmdsByCategory[ category ][i]
if existingCmd.cmd == cmd and existingCmd.manual == true then
table.remove( ulx.cmdsByCategory[ category ], i)
break