Does not reassign castCount so it being casted only once

This commit is contained in:
Mikhail
2024-07-22 11:17:36 +02:00
parent 1f8b34778c
commit b61690ce7a

View File

@@ -74,8 +74,7 @@ bool CastCustomSpellAction::Execute(Event event)
itemTarget = *items.begin();
else
{
castCount = atoi(param.c_str());
if (castCount > 0)
if (atoi(param.c_str()) > 0)
text = text.substr(0, pos);
}
}