This commit is contained in:
aozhiwei 2023-12-13 13:20:35 +08:00
parent 564851eae8
commit b843518bfd

View File

@ -1464,7 +1464,7 @@ void Creature::Shot(glm::vec3& target_dir, bool& shot_ok, float fly_distance, in
trace_target_uniid);
} else if (power_idx < GetCurrWeapon()->meta->_power_charge.size()) {
const mt::Equip* weapon_meta = mt::Equip::GetById
(std::get<1>(GetCurrWeapon()->meta->_power_charge[power_idx]));
(std::get<1>(GetCurrWeapon()->meta->_power_charge.at(power_idx)));
if (weapon_meta) {
const mt::Equip* bullet_meta = mt::Equip::GetById(weapon_meta->use_bullet());;