Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Attempt to call global 'LinkSource' (a nil value) #328

Closed
shroobloom opened this issue Oct 21, 2022 · 1 comment
Closed

[BUG] Attempt to call global 'LinkSource' (a nil value) #328

shroobloom opened this issue Oct 21, 2022 · 1 comment
Assignees
Labels
bug Something isn't working serverside

Comments

@shroobloom
Copy link

Short Description

The above error is produced when trying to use Starfall's :acfAmmoCount() function. Likely due to the fact that LinkSource is not set to ACF.GetLinkSource in starfall/libs_sv/acffunctions.lua like it is in entities/gmod_wire_expression2/core/custom/acffunctions.lua. AllLinkSources is also undefined.

Branch and Version

Master, latest (88b02d6).

Console Error Logs

starfall/libs_sv/acffunctions.lua:2360: attempt to call global 'LinkSource' (a nil value)

How to Reproduce

Spawn an ACF gun and put the following starfall on it:

chip():isWeldedTo():acfAmmoCount()

@shroobloom shroobloom added the bug Something isn't working label Oct 21, 2022
@TwistedTail TwistedTail self-assigned this Oct 23, 2022
@TwistedTail TwistedTail added this to New in Issues and Suggestions via automation Oct 23, 2022
@TwistedTail
Copy link
Member

Fixed on 2041fca.

Issues and Suggestions automation moved this from New to Done Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working serverside
Projects
Development

No branches or pull requests

2 participants