Merge branch 'facehuggersgalore' into 'master'
Some checks failed
CMake / Ubuntu (push) Has been cancelled
CMake / MacOS (push) Has been cancelled
CMake / windows-2019 (push) Has been cancelled
CMake / windows-2022 (push) Has been cancelled

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

See merge request OpenMW/openmw!4453
This commit is contained in:
psi29a 2024-11-14 15:48:22 +00:00
commit 43f25fea5d

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));
}
};