mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-02 22:48:31 +00:00
Only mark valid actor ids for conversion
This commit is contained in:
parent
72de0c06ba
commit
d3b4ea0ba7
1 changed files with 2 additions and 2 deletions
|
|
@ -257,9 +257,9 @@ namespace
|
|||
if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
|
||||
MWWorld::convertEnchantmentSlots(state.mCreatureStats, state.mInventory);
|
||||
}
|
||||
if (reader.getActorIdConverter())
|
||||
if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
|
||||
{
|
||||
if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
|
||||
if (reader.getActorIdConverter() && state.mHasCustomState)
|
||||
{
|
||||
MWBase::Environment::get().getWorldModel()->assignSaveFileRefNum(state.mRef);
|
||||
reader.getActorIdConverter()->mMappings.emplace(state.mCreatureStats.mActorId, state.mRef.mRefNum);
|
||||
|
|
|
|||
Loading…
Reference in a new issue