Decompile fn_23598 (CSession::UnequipItem)
Batch #17965 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_23598 CSession::UnequipItem: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
6b1cb09b70
commit
ef315dcbb6
1 changed files with 1 additions and 6 deletions
|
|
@ -1098,12 +1098,7 @@ bool CSession::UnequipItem(int location, std::uint32_t identity) {
|
|||
|
||||
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
||||
if (mode != nullptr) {
|
||||
auto it = g_activeSkillEffects.begin();
|
||||
for (; it != g_activeSkillEffects.end(); ++it) {
|
||||
if (it->id == 0x2B7) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
auto it = std::find_if(g_activeSkillEffects.begin(), g_activeSkillEffects.end(), [](const ActiveSkillEffect& effect) { return effect.id == 0x2B7; });
|
||||
if (it != g_activeSkillEffects.end()) {
|
||||
g_activeSkillEffects.erase(it);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue