mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 15:11:36 -04: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