mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 06:45:35 +00:00
Don't return negative values from GetMagicka
This commit is contained in:
parent
e4cd89643f
commit
f1caeea444
1 changed files with 3 additions and 0 deletions
|
@ -187,6 +187,9 @@ namespace MWScript
|
||||||
.getCreatureStats(ptr)
|
.getCreatureStats(ptr)
|
||||||
.getDynamic(mIndex)
|
.getDynamic(mIndex)
|
||||||
.getCurrent();
|
.getCurrent();
|
||||||
|
// GetMagicka shouldn't return negative values
|
||||||
|
if(mIndex == 1 && value < 0)
|
||||||
|
value = 0;
|
||||||
}
|
}
|
||||||
runtime.push (value);
|
runtime.push (value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue