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

BUGFIX - EXCEPTION WHEN flag is added in path, resource transport changed=cancel #477

Open
p1plp1 opened this issue Sep 1, 2020 · 0 comments

Comments

@p1plp1
Copy link

p1plp1 commented Sep 1, 2020

Building::cancel_transported_resource(Resource::Type res) {
if (res == Resource::TypeFish ||
res == Resource::TypeMeat ||
res == Resource::TypeBread) {
res = Resource::GroupFood;
}
causes error because this comparsion if (stock[i].type == res) is nonsense and causes in_stock = -1 that throws throw ExceptionFreeserf( .....

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