mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-17 20:42:29 +00:00
Don't return negative values from GetMagicka
This commit is contained in:
parent
e4cd89643f
commit
f1caeea444
@ -187,6 +187,9 @@ namespace MWScript
|
||||
.getCreatureStats(ptr)
|
||||
.getDynamic(mIndex)
|
||||
.getCurrent();
|
||||
// GetMagicka shouldn't return negative values
|
||||
if(mIndex == 1 && value < 0)
|
||||
value = 0;
|
||||
}
|
||||
runtime.push (value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user