mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 08:39:45 +00:00
Merge branch 'smartobjectnodepointer' into 'master'
Fix unsafe memory access at object.cpp Closes #6680 See merge request OpenMW/openmw!1726
This commit is contained in:
commit
c35f8c01ab
2 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue