Fix unsafe memory access at object.cpp

pull/3226/head
Nelsson Huotari 2 years ago committed by elsid
parent f0063f6100
commit 6869fa18e4

@ -107,6 +107,7 @@
Bug #6606: Quests with multiple IDs cannot always be restarted
Bug #6655: Constant effect absorb attribute causes the game to break
Bug #6670: Dialogue order is incorrect
Bug #6680: object.cpp handles nodetree unsafely, memory access with dangling pointer
Feature #890: OpenMW-CS: Column filtering
Feature #1465: "Reset" argument for AI functions
Feature #2491: Ability to make OpenMW "portable"

@ -164,7 +164,7 @@ void Objects::removeCell(const MWWorld::CellStore* store)
void Objects::updatePtr(const MWWorld::Ptr &old, const MWWorld::Ptr &cur)
{
osg::Node* objectNode = cur.getRefData().getBaseNode();
osg::ref_ptr<osg::Node> objectNode = cur.getRefData().getBaseNode();
if (!objectNode)
return;

Loading…
Cancel
Save