From da5607b03f0753bc13b265790ce805c7b472a43a Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 23:02:00 +0000 Subject: [PATCH] fix: prevent null dereference in adjustTransformMtx when getContain() is null --- .../GameClient/Drawable/Draw/W3DDependencyModelDraw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Core/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DDependencyModelDraw.cpp b/Core/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DDependencyModelDraw.cpp index 07e057d4a42..693b4ff1710 100644 --- a/Core/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DDependencyModelDraw.cpp +++ b/Core/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw/W3DDependencyModelDraw.cpp @@ -129,6 +129,7 @@ void W3DDependencyModelDraw::adjustTransformMtx(Matrix3D& mtx) const if( md->m_attachToDrawableBoneInContainer.isNotEmpty() && me && me->getContainedBy() + && me->getContainedBy()->getContain() && !me->getContainedBy()->getContain()->isEnclosingContainerFor(me) ) {