1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Make GetHealthGetRatio return 1 for actors with a max health of 0

This commit is contained in:
Evil Eye 2024-11-12 21:29:18 +01:00
parent 0044346b49
commit d6e300ba25

View File

@ -365,7 +365,7 @@ namespace MWScript
const MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats(ptr);
runtime.push(stats.getDynamic(mIndex).getRatio());
runtime.push(stats.getDynamic(mIndex).getRatio(false));
}
};