freeserf
freeserf copied to clipboard
BUGFIX - EXCEPTION WHEN flag is added in path, resource transport changed=cancel
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( .....