Skip to content

Commit

Permalink
Race: fix a crash when removing effects (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daztek authored Nov 4, 2024
1 parent 30482a7 commit 45d6dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/Race/Race.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void Race::RemoveRaceEffects(CNWSCreature *pCreature)
return;

std::vector<uint64_t> remove(128);
for (int i = pCreature->m_appliedEffects.num; i >= 0; --i)
for (int32_t i = 0; i < pCreature->m_appliedEffects.num; i++)
{
auto eff = (CGameEffect*)pCreature->m_appliedEffects.element[i];
if (eff->m_sCustomTag == "NWNX_Race_RacialMod")
Expand Down

0 comments on commit 45d6dd1

Please sign in to comment.