-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Bad address index. #80714
Comments
supplement The following modifications still have the same error if is_instance_of(self,Player): |
I can repro this in Godot 4.1.1, but looks like this has already been fixed in current 4.2 master (0511f9d) and 4.2 dev 3 release. Closing, but feel free to comment or reopen the issue if the problem is not solved for some reason. |
I did mention that I can also reproduce this in 4.1.1, but this has been fixed at some point since (fixed at least in 4.2 dev 3 relese) so I don't think this is a valid issue anymore as we usually close issues when they are fixed in master. Although it could be useful to find out what PR fixed this for future reference, even if it did so by accident. edit: Possible duplicate of #74253? |
Yes, the reason is the same, circular dependencies/inheritance: flowchart BT
main.gd-- requires -->char.tscn
char.tscn-- requires -->char.gd
char.gd-- extends -->entry.gd
entry.gd-- requires -->player.gd
player.gd-- extends -->char.gd
Sorry, I misread.
I don't think this has been properly fixed, it's a complex issue. However, we can close this as a duplicate of #74253. |
Godot version
4.1
System information
macOS12.1
Issue description
func test():
if self is Player:
pass
Impossible code that prevents it from running
Steps to reproduce
run main.tscn
Minimal reproduction project
bug.zip
The text was updated successfully, but these errors were encountered: