1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

Fix unsafe memory access at object.cpp

This commit is contained in:
Nelsson Huotari 2022-03-26 15:16:22 +00:00 committed by elsid
parent f0063f6100
commit 6869fa18e4
2 changed files with 2 additions and 1 deletions

View File

@ -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"

View File

@ -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;