mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +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:
parent
30b1da996b
commit
608bd0f525
1 changed files with 1 additions and 0 deletions
|
@ -130,6 +130,7 @@ MWWorld::ContainerStoreIterator MWWorld::ContainerStore::add (const Ptr& itemPtr
|
||||||
{
|
{
|
||||||
MWWorld::ContainerStoreIterator it = addImp(itemPtr);
|
MWWorld::ContainerStoreIterator it = addImp(itemPtr);
|
||||||
MWWorld::Ptr item = *it;
|
MWWorld::Ptr item = *it;
|
||||||
|
item.getRefData().setBaseNode(NULL);
|
||||||
|
|
||||||
std::string script = MWWorld::Class::get(item).getScript(item);
|
std::string script = MWWorld::Class::get(item).getScript(item);
|
||||||
if(script != "")
|
if(script != "")
|
||||||
|
|
Loading…
Reference in a new issue