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

Inherited Variables Inaccessible by Other Objects #772

Closed
jspayd opened this issue Jul 9, 2014 · 0 comments
Closed

Inherited Variables Inaccessible by Other Objects #772

jspayd opened this issue Jul 9, 2014 · 0 comments

Comments

@jspayd
Copy link
Contributor

jspayd commented Jul 9, 2014

There is a problem with the inheritance system. When an object1 attempts to access a variable belonging to object2 and the variable was defined by object2's parent, 0 is returned.

For example.

objParent | Create Event:
variable = 32;

objChild is the child of objParent.

objOther | Draw Event:
draw_text(4, 4, string(oChild.variable));

A 0 is drawn to the screen when it should be a 32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant