Skip to content

Commit f02b950

Browse files
committed
refactor(headless): Replicate 3DScene null check removal to Generals
1 parent 5f90c55 commit f02b950

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Generals/Code/GameEngineDevice/Source/W3DDevice/GameLogic/W3DGhostObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void W3DRenderObjectSnapshot::update(RenderObjClass *robj, DrawableInfo *drawInf
153153
// ------------------------------------------------------------------------------------------------
154154
Bool W3DRenderObjectSnapshot::addToScene()
155155
{
156-
if (W3DDisplay::m_3DScene != nullptr && !m_robj->Is_In_Scene())
156+
if (!m_robj->Is_In_Scene())
157157
{
158158
W3DDisplay::m_3DScene->Add_Render_Object(m_robj);
159159
return true;

0 commit comments

Comments
 (0)