fix range check bug in non-v4 ItemParameterTable

This commit is contained in:
Martin Michelsen
2023-10-28 14:50:31 -07:00
parent 50a594ec60
commit 45c2b792f7
3 changed files with 6 additions and 7 deletions
-1
View File
@@ -481,7 +481,6 @@ void player_feed_mag(std::shared_ptr<Client> c, size_t mag_item_index, size_t fe
// If the mag has evolved, add its new photon blast
if (mag_number != mag_item.data.data1[1]) {
auto item_parameter_table = s->item_parameter_table_for_version(c->version());
const auto& new_mag_def = item_parameter_table->get_mag(mag_item.data.data1[1]);
mag_item.data.add_mag_photon_blast(new_mag_def.photon_blast);
}