Skip to content

Commit 0b39156

Browse files
committed
cloning: another check for 'our object'
1 parent 6802db8 commit 0b39156

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

code/components/gta-net-five/src/CloneManager.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,9 @@ bool CloneManagerLocal::HandleCloneUpdate(const msgClone& msg)
904904
auto& extData = m_extendedData[msg.GetObjectId()];
905905
auto obj = objIt->second;
906906

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

0 commit comments

Comments
 (0)