Skip to content

Commit

Permalink
fix: food rotting incorrectly (#3642)
Browse files Browse the repository at this point in the history
Fix food not rotting
  • Loading branch information
joveeater authored Nov 12, 2023
1 parent 47ee09b commit 2791cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/active_item_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ std::vector<item *> active_item_cache::get_for_processing()
kv.second.second.size(); //Make sure the key isn't larger than the array
std::advance( it, kv.second.first );

kv.second.first += num_to_process + 1;
while( num_to_process >= 0 ) {
if( *it ) {
items_to_process.push_back( & **it );
Expand All @@ -116,7 +117,6 @@ std::vector<item *> active_item_cache::get_for_processing()
it = kv.second.second.begin();
}
}
kv.second.first += num_to_process + 1;
}
return items_to_process;
}
Expand Down

0 comments on commit 2791cd3

Please sign in to comment.