Skip to content

Commit 9ee190c

Browse files
committed
bugfix(ghostobject): Fix incorrect snapshot update in W3DGhostObject::snapShot (#1569)
1 parent d1b0afd commit 9ee190c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ void W3DGhostObject::snapShot(int playerIndex)
360360
m_parentSnapshots[playerIndex] = snap;
361361
}
362362
else
363-
m_parentSnapshots[playerIndex]->update(robj, &m_drawableInfo);
363+
{
364+
snap->update(robj, &m_drawableInfo);
365+
}
364366

365367
//Adding and removing render objects to the scene is expensive
366368
//so only do it for the real player watching the screen. There is

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ void W3DGhostObject::snapShot(int playerIndex)
364364
m_parentSnapshots[playerIndex] = snap;
365365
}
366366
else
367-
m_parentSnapshots[playerIndex]->update(robj, &m_drawableInfo);
367+
{
368+
snap->update(robj, &m_drawableInfo);
369+
}
368370

369371
//Adding and removing render objects to the scene is expensive
370372
//so only do it for the real player watching the screen. There is

0 commit comments

Comments
 (0)