Don't return negative values from GetMagicka

pull/593/head
Evil Eye 4 years ago
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…
Cancel
Save