mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 22:45:35 +00:00
Fix pick/probe uses decrement
This commit is contained in:
parent
ea669cc115
commit
0dcb8c6b69
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ namespace MWMechanics
|
|||
resultMessage = "#{sLockFail}";
|
||||
}
|
||||
|
||||
lockpick.getCellRef().setCharge(uses-1);
|
||||
lockpick.getCellRef().setCharge(--uses);
|
||||
if (!uses)
|
||||
lockpick.getContainerStore()->remove(lockpick, 1, mActor);
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ namespace MWMechanics
|
|||
resultMessage = "#{sTrapFail}";
|
||||
}
|
||||
|
||||
probe.getCellRef().setCharge(uses-1);
|
||||
probe.getCellRef().setCharge(--uses);
|
||||
if (!uses)
|
||||
probe.getContainerStore()->remove(probe, 1, mActor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue