perf. use nullptr

This commit is contained in:
lhhxxxxx
2022-06-06 19:31:48 +08:00
parent 803134d541
commit 7a15449dfe
14 changed files with 36 additions and 36 deletions

View File

@@ -42,7 +42,7 @@ bool asst::RoguelikeSkillSelectionTaskPlugin::_run()
}
const auto& oper_info = rg_src.get_oper_info(name);
int index = 0;
BattleSkillUsage usage = BattleSkillUsage::Possibly;
auto usage = BattleSkillUsage::Possibly;
if (skill_vec.size() >= oper_info.skill) {
index = oper_info.skill - 1;
usage = oper_info.skill_usage;