We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72de0c0 commit d3b4ea0Copy full SHA for d3b4ea0
apps/openmw/mwworld/cellstore.cpp
@@ -257,9 +257,9 @@ namespace
257
if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
258
MWWorld::convertEnchantmentSlots(state.mCreatureStats, state.mInventory);
259
}
260
- if (reader.getActorIdConverter())
+ if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
261
{
262
- if constexpr (std::is_same_v<T, ESM::Creature> || std::is_same_v<T, ESM::NPC>)
+ if (reader.getActorIdConverter() && state.mHasCustomState)
263
264
MWBase::Environment::get().getWorldModel()->assignSaveFileRefNum(state.mRef);
265
reader.getActorIdConverter()->mMappings.emplace(state.mCreatureStats.mActorId, state.mRef.mRefNum);
0 commit comments