1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 03:45:32 +00:00

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 const T& getModified() const
{ {
return mModified; return std::max(static_cast<T>(0), mModified);
} }
T getModifier() const T getModifier() const