From 7a1531c01b98752b24bbd1e67059fd4fd7e6cb37 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 28 Sep 2016 19:41:54 +0300 Subject: [PATCH] Fix script functions for setting dynamic stats, part 2 --- apps/openmw-mp/Script/Functions/Stats.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Stats.cpp b/apps/openmw-mp/Script/Functions/Stats.cpp index 51c1538d0..2c0928e61 100644 --- a/apps/openmw-mp/Script/Functions/Stats.cpp +++ b/apps/openmw-mp/Script/Functions/Stats.cpp @@ -179,7 +179,7 @@ void StatsFunctions::SetHealthCurrent(unsigned short pid, double value) noexcept Player *player; GET_PLAYER(pid, player,); - player->CreatureStats()->mDynamic[0].mCurrent = 0; + player->CreatureStats()->mDynamic[0].mCurrent = value; } double StatsFunctions::GetMagickaBase(unsigned short pid) noexcept @@ -211,7 +211,7 @@ void StatsFunctions::SetMagickaCurrent(unsigned short pid, double value) noexcep Player *player; GET_PLAYER(pid, player,); - player->CreatureStats()->mDynamic[1].mCurrent = 0; + player->CreatureStats()->mDynamic[1].mCurrent = value; } double StatsFunctions::GetFatigueBase(unsigned short pid) noexcept @@ -243,7 +243,7 @@ void StatsFunctions::SetFatigueCurrent(unsigned short pid, double value) noexcep Player *player; GET_PLAYER(pid, player,); - player->CreatureStats()->mDynamic[2].mCurrent = 0; + player->CreatureStats()->mDynamic[2].mCurrent = value; } int StatsFunctions::GetAttributeCount() noexcept