mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-19 16:39:41 +00:00
Fixes #998: Setting the max health should also set the current health
Added setting current value of dynamic stat in OpSetDynamic class. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
parent
ef8c0fab73
commit
8d63f8eea2
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ namespace MWScript
|
|||
.getDynamic (mIndex));
|
||||
|
||||
stat.setModified (value, 0);
|
||||
stat.setCurrent(value);
|
||||
|
||||
MWWorld::Class::get (ptr).getCreatureStats (ptr).setDynamic (mIndex, stat);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue