|
|
@ -824,11 +824,18 @@ void LocalPlayer::removeSpellsActive()
|
|
|
|
|
|
|
|
|
|
|
|
for (const auto& activeSpell : spellsActiveChanges.activeSpells)
|
|
|
|
for (const auto& activeSpell : spellsActiveChanges.activeSpells)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
LOG_APPEND(TimedLog::LOG_INFO, "- removing %sstacking active spell %s", activeSpell.isStackingSpell ? "" : "non-", activeSpell.id.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
// Remove stacking spells based on their timestamps
|
|
|
|
// Remove stacking spells based on their timestamps
|
|
|
|
if (activeSpell.isStackingSpell)
|
|
|
|
if (activeSpell.isStackingSpell)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MWWorld::TimeStamp timestamp = MWWorld::TimeStamp(activeSpell.timestampHour, activeSpell.timestampDay);
|
|
|
|
MWWorld::TimeStamp timestamp = MWWorld::TimeStamp(activeSpell.timestampHour, activeSpell.timestampDay);
|
|
|
|
activeSpells.removeSpellByTimestamp(activeSpell.id, timestamp);
|
|
|
|
bool foundSpell = activeSpells.removeSpellByTimestamp(activeSpell.id, timestamp);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!foundSpell)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
LOG_APPEND(TimedLog::LOG_INFO, "-- spell with this ID and timestamp could not be found!");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|