Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
cloning: another check for 'our object'
  • Loading branch information
blattersturm committed Jul 2, 2019
1 parent 6802db8 commit 0b39156
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/components/gta-net-five/src/CloneManager.cpp
Expand Up @@ -904,7 +904,9 @@ bool CloneManagerLocal::HandleCloneUpdate(const msgClone& msg)
auto& extData = m_extendedData[msg.GetObjectId()];
auto obj = objIt->second;

if (extData.clientId == m_netLibrary->GetServerNetID())
// if owned locally
if (msg.GetClientId() == m_netLibrary->GetServerNetID()
&& extData.clientId == msg.GetClientId() /* and this is not a migration */)
{
Log("%s: our object, bailing out\n", __func__);

Expand Down

0 comments on commit 0b39156

Please sign in to comment.