mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-09 23:01:13 +00:00
Let cancelled bound item effect remain active for the frame
This commit is contained in:
parent
5b18edf938
commit
918a6352e4
1 changed files with 1 additions and 4 deletions
|
|
@ -192,10 +192,7 @@ namespace
|
|||
newItem = *it;
|
||||
|
||||
if (newItem.isEmpty() || boundPtr != newItem)
|
||||
{
|
||||
store.remove(boundPtr, 1);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (actor == MWMechanics::getPlayer())
|
||||
{
|
||||
|
|
@ -641,7 +638,7 @@ namespace MWMechanics
|
|||
const MWWorld::Store<ESM::GameSetting>& gmst = world->getStore().get<ESM::GameSetting>();
|
||||
const ESM::RefId itemId = ESM::RefId::stringRefId(gmst.find(item)->mValue.getString());
|
||||
if (!addBoundItem(itemId, target))
|
||||
invalid = true;
|
||||
effect.mTimeLeft = 0.f;
|
||||
break;
|
||||
}
|
||||
case ESM::MagicEffect::FireDamage:
|
||||
|
|
|
|||
Loading…
Reference in a new issue