Good afternoon, when a player dies due to a boss or monster, I'm getting an error in two parts of the creature.cpp and the server is crashing. My server is a TFS 1.4.2 v10.98
I get an error in these functions exactly

I get an error in these functions exactly
C++:
void Creature::removeCondition(Condition* condition, bool force/* = false*/)
{
auto it = std::find(conditions.begin(), conditions.end(), condition);
if (it == conditions.end()) {
return;
}
if (!force && condition->getType() == CONDITION_PARALYZE) {
int64_t walkDelay = getWalkDelay();
if (walkDelay > 0) {
g_scheduler.addEvent(createSchedulerTask(walkDelay, std::bind(&Game::forceRemoveCondition, &g_game, getID(), condition->getType())));
return;
}
}
conditions.erase(it); <---- Here
condition->endCondition(this);
onEndCondition(condition->getType());
delete condition;
}
C++:
Condition* Creature::getCondition(ConditionType_t type, ConditionId_t conditionId, uint32_t subId/* = 0*/) const
{
for (Condition* condition : conditions) {
if (condition->getType() == type && condition->getId() == conditionId && condition->getSubId() == subId) { <---- Here
return condition;
}
}
return nullptr;
}
