Stats should never go below 0

This commit is contained in:
scrawl 2013-03-06 20:45:11 +01:00
parent 642653d10e
commit f7d8f6456f

View file

@ -28,7 +28,7 @@ namespace MWMechanics
const T& getModified() const
{
return mModified;
return std::max(static_cast<T>(0), mModified);
}
T getModifier() const