1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Don't copy the base node pointer when adding a world object to a container. Fixes bug #1028

This commit is contained in:
scrawl 2013-12-27 01:34:56 +01:00
parent 30b1da996b
commit 608bd0f525

View File

@ -130,6 +130,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& itemPtr
{
MWWorld::ContainerStoreIterator it = addImp(itemPtr);
MWWorld::Ptr item = *it;
item.getRefData().setBaseNode(NULL);
std::string script = MWWorld::Class::get(item).getScript(item);
if(script != "")