Project

General

Profile

Bug #3839

InventoryStore::purgeEffect() removes only first effect with argument ID

Added by Andrei Kortunov 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
Game Mechanics
Target version:
Start date:
04/23/2017
% Done:

100%

Reproducibility:
Have not tried
Operating system:
Linux
Severity:
Normal

Description

I created a test plugin, in which Fargoth's ring has two Invisibility effects. An engine only purges the first Invisibility effect, when I attacks someone with the ring equipped.

I think this "break" instruction causes the bug: https://github.com/OpenMW/openmw/blob/master/apps/openmw/mwworld/inventorystore.cpp#L941

PurgeEffectTwoInvisTest.esp (5.24 KB) Andrei Kortunov, 04/23/2017 08:10 PM

Associated revisions

Revision bba822c0 (diff)
Added by Andrei Kortunov 7 months ago

Purge all effects with same ID instead only first (fixes #3839)

History

#1 Updated by Alexei Dobrohotov 7 months ago

  • Status changed from New to Resolved
  • Assignee set to Andrei Kortunov
  • Target version set to openmw-0.43
  • % Done changed from 0 to 100

#2 Updated by Alexei Dobrohotov 7 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF