[SOLVED]"company" is not defined error

I am getting an error ‘Uncaught ReferenceError: company is not defined’ when I try to do something like:
e

n.adjustHype(blah blah * company.getRandom());

Could someone help me?

Use this instead:

GameManager.company.getRandom()

since company, which is usually used as a parameter in some functions simply points to GameManager.company in most (if not all) cases.

2 Likes

Thanks mate!

1 Like