mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Stats should never go below 0
This commit is contained in:
parent
642653d10e
commit
f7d8f6456f
@ -28,7 +28,7 @@ namespace MWMechanics
|
||||
|
||||
const T& getModified() const
|
||||
{
|
||||
return mModified;
|
||||
return std::max(static_cast<T>(0), mModified);
|
||||
}
|
||||
|
||||
T getModifier() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user