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

Deadlock in Corporation Recruiter Script #16

Closed
Mac2 opened this issue May 22, 2022 · 2 comments
Closed

Deadlock in Corporation Recruiter Script #16

Mac2 opened this issue May 22, 2022 · 2 comments

Comments

@Mac2
Copy link

Mac2 commented May 22, 2022

Hi,

while (business.funds < upgradeCost) {

If you have not enough funds in your corporation the script will enter the while loop, but the business.funds will never be updated.
So you should use directly corp.getCorporation().funds instead.

Thanks for all the work and the interesting guidelines!

best,
Mac

@chrisrabe
Copy link
Owner

That's a good catch 👍

@chrisrabe
Copy link
Owner

Implemented in #19

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

2 participants