1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 12:35:46 +00:00

Merge branch 'crashtainer' into 'master'

Use the right getContainerStore

Closes #7658

See merge request OpenMW/openmw!3644
This commit is contained in:
Alexei Kotov 2023-12-11 12:25:33 +00:00
commit 21ca9ba34b

View File

@ -306,7 +306,7 @@ namespace MWClass
if (newPtr.getRefData().getCustomData()) if (newPtr.getRefData().getCustomData())
{ {
MWBase::Environment::get().getWorldModel()->registerPtr(newPtr); MWBase::Environment::get().getWorldModel()->registerPtr(newPtr);
newPtr.getContainerStore()->setPtr(newPtr); getContainerStore(newPtr).setPtr(newPtr);
} }
return newPtr; return newPtr;
} }