From d6e300ba2550e5cb91716b889d3a9cd7a1a35b19 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Tue, 12 Nov 2024 21:29:18 +0100 Subject: [PATCH] Make GetHealthGetRatio return 1 for actors with a max health of 0 --- apps/openmw/mwscript/statsextensions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/statsextensions.cpp b/apps/openmw/mwscript/statsextensions.cpp index 064e90f114..96a9c4f507 100644 --- a/apps/openmw/mwscript/statsextensions.cpp +++ b/apps/openmw/mwscript/statsextensions.cpp @@ -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)); } };