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

Fix list variables returning null #3953

Merged
merged 1 commit into from
May 8, 2021

Conversation

TPGamesNL
Copy link
Member

Description

(the change is at L300)

With a list variable like: {_a::b::c} = 1, without a value at {_a::b}, the expression {_a::*} would return an array of size 1 instead of 0.

Test code:

command /test:
	trigger:
		set {_a::b::d} to 1
		set {_a::c::d} to 1
		message "size: %size of {_a::*}%"
		message "values: %{_a::*}%"

Target Minecraft Versions: any
Requirements: none
Related Issues: #2600

@TPGamesNL TPGamesNL added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.6 labels May 8, 2021
@FranKusmiruk FranKusmiruk merged commit c5e8b91 into SkriptLang:master May 8, 2021
@TPGamesNL TPGamesNL deleted the fix/list-variable-size branch May 8, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants