mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-06 15:46:43 +00:00
Require finite values in Actor._onHit
This commit is contained in:
parent
e3b293c4b7
commit
c0ac3388df
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include <components/detournavigator/agentbounds.hpp>
|
#include <components/detournavigator/agentbounds.hpp>
|
||||||
#include <components/lua/luastate.hpp>
|
#include <components/lua/luastate.hpp>
|
||||||
|
#include <components/misc/finitevalues.hpp>
|
||||||
#include <components/settings/values.hpp>
|
#include <components/settings/values.hpp>
|
||||||
|
|
||||||
#include "apps/openmw/mwbase/environment.hpp"
|
#include "apps/openmw/mwbase/environment.hpp"
|
||||||
|
|
@ -427,7 +428,7 @@ namespace MWLua
|
||||||
{
|
{
|
||||||
for (auto& [key, value] : damageLua.value())
|
for (auto& [key, value] : damageLua.value())
|
||||||
{
|
{
|
||||||
damageCpp[key.as<std::string>()] = value.as<float>();
|
damageCpp[key.as<std::string>()] = value.as<Misc::FiniteFloat>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::string sourceTypeStr = options.get_or<std::string>("sourceType", "unspecified");
|
std::string sourceTypeStr = options.get_or<std::string>("sourceType", "unspecified");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue