Skip to content

Conversation

@ineveraskedforthis
Copy link
Contributor

No description provided.

for(uint32_t i = 0; i < e_inputs.set_size; i++) {
if(e_inputs.commodity_type[i]) {
rgo_efficiency_inputs_amount[e_inputs.commodity_type[i].index()] +=
rgo_efficiency_inputs_amount[e_inputs.commodity_type[i].value] +=
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that you want to go back to .value here? index() will be in the range 0 ... max, while .value directly will be 1 ... max+1

@schombert schombert merged commit eb21e70 into schombert:main Feb 4, 2026
3 of 5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants