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

Invalid access to property or key 'current_amount' on a base object of type 'RefCounted (PlayerAttribute)'. #481

Closed
snipercup opened this issue Nov 26, 2024 · 0 comments · Fixed by #490
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@snipercup
Copy link
Collaborator

Steps to reproduce:

  • Lose health
  • Use bandage
  • Observe error

Stack trace:
image

The error shows up here:


# Custom sorting functions for PlayerAttributes
func _compare_player_attributes_by_current_amount_ascending(a: PlayerAttribute, b: PlayerAttribute) -> bool:
	return a.current_amount < b.current_amount

I think it should be a.defaultmode.current_amount, same for b

@snipercup snipercup added bug Something isn't working good first issue Good for newcomers labels Nov 26, 2024
@snipercup snipercup self-assigned this Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant