mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 15:27:13 -04:00
Merge branch 'facehuggersgalore' into 'master'
Make GetHealthGetRatio return 1 for actors with a max health of 0 See merge request OpenMW/openmw!4453
This commit is contained in:
commit
43f25fea5d
@ -365,7 +365,7 @@ namespace MWScript
|
|||||||
|
|
||||||
const MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats(ptr);
|
const MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats(ptr);
|
||||||
|
|
||||||
runtime.push(stats.getDynamic(mIndex).getRatio());
|
runtime.push(stats.getDynamic(mIndex).getRatio(false));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user