From 074e241c329df2321ff8019892a2de9fbf1ec7d8 Mon Sep 17 00:00:00 2001 From: Emanuel Guevel Date: Sat, 20 Jul 2013 14:52:17 +0200 Subject: [PATCH] MWMechanics::DynamicStat: fix members initialization --- apps/openmw/mwmechanics/stat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/stat.hpp b/apps/openmw/mwmechanics/stat.hpp index e9b7f4385..606671389 100644 --- a/apps/openmw/mwmechanics/stat.hpp +++ b/apps/openmw/mwmechanics/stat.hpp @@ -98,8 +98,8 @@ namespace MWMechanics public: typedef T Type; - DynamicStat() : mCurrent (0) {} - DynamicStat(T current) : mCurrent (current) {} + DynamicStat() : mStatic (0), mCurrent (0) {} + DynamicStat(T base) : mStatic (base), mCurrent (base) {} DynamicStat(T base, T modified, T current) : mStatic(base, modified), mCurrent (current) {} DynamicStat(const Stat &stat, T current) : mStatic(stat), mCurrent (current) {}