Fix pick/probe uses decrement

pull/3006/head^2
Alexei Dobrohotov 4 years ago
parent ea669cc115
commit 0dcb8c6b69

@ -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…
Cancel
Save