Merge pull request #217 from CFC-Servers/fix/fix-global

Fix global declaration
This commit is contained in:
SticklyMan 2024-02-22 09:45:10 -07:00 committed by GitHub
commit 061bec4a90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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