@@ -954,7 +954,7 @@ void CMapManager::LinkupElements()
954954 {
955955 CElement* pElement = g_pGame->GetMapManager ()->GetRootElement ()->FindChild (szAttachToID, 0 , true );
956956
957-  if  (pElement && !pElement-> IsAttachedToElement (vehicle) )
957+  if  (pElement)
958958 vehicle->AttachTo (pElement);
959959 }
960960 }
@@ -968,7 +968,7 @@ void CMapManager::LinkupElements()
968968 if  (szAttachToID[0 ])
969969 {
970970 CElement* pElement = g_pGame->GetMapManager ()->GetRootElement ()->FindChild (szAttachToID, 0 , true );
971-  if  (pElement && !pElement-> IsAttachedToElement (pPlayer) )
971+  if  (pElement)
972972 pPlayer->AttachTo (pElement);
973973 }
974974 }
@@ -982,7 +982,7 @@ void CMapManager::LinkupElements()
982982 if  (szAttachToID[0 ])
983983 {
984984 CElement* pElement = g_pGame->GetMapManager ()->GetRootElement ()->FindChild (szAttachToID, 0 , true );
985-  if  (pElement && !pElement-> IsAttachedToElement (pObject) )
985+  if  (pElement)
986986 pObject->AttachTo (pElement);
987987 }
988988 }
@@ -996,7 +996,7 @@ void CMapManager::LinkupElements()
996996 if  (szAttachToID[0 ])
997997 {
998998 CElement* pElement = g_pGame->GetMapManager ()->GetRootElement ()->FindChild (szAttachToID, 0 , true );
999-  if  (pElement && !pElement-> IsAttachedToElement (pBlip) )
999+  if  (pElement)
10001000 pBlip->AttachTo (pElement);
10011001 }
10021002 }
0 commit comments