Merge pull request #3012 from akortunov/container_crash

Fix crash on saving
pull/3013/head
Bret Curtis 4 years ago committed by GitHub
commit 425fa837d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -308,8 +308,14 @@ namespace MWClass
void Container::writeAdditionalState (const MWWorld::ConstPtr& ptr, ESM::ObjectState& state) const
{
if (!ptr.getRefData().getCustomData())
{
state.mHasCustomState = false;
return;
}
const ContainerCustomData& customData = ptr.getRefData().getCustomData()->asContainerCustomData();
if (!ptr.getRefData().getCustomData() || !customData.mStore.isResolved())
if (!customData.mStore.isResolved())
{
state.mHasCustomState = false;
return;

Loading…
Cancel
Save