if (TBCapturePointDataBase[i].type < BATTLEFIELD_TB_FORT_MAX)
{
workshop->GiveControlTo(GetAttackerTeam(), true); // Update control of this point
m_Data32[BATTLEFIELD_TB_DATA_CAPTURED_FORT_ATT]++;
m_Data32[BATTLEFIELD_TB_DATA_CAPTURED_FORT_DEF]–;
// Create Object
BfCapturePointTB* TBWorkShop = new BfCapturePointTB(this, GetAttackerTeam());
// Spawn gameobject associate (see in OnGameObjectCreate, of OutdoorPvP for see association)
if(TBWorkShop->SetCapturePointData(TBCapturePointDataBase[i].CapturePoint.entryh, m_MapId,
TBCapturePointDataBase[i].CapturePoint.x,
TBCapturePointDataBase[i].CapturePoint.y,
TBCapturePointDataBase[i].CapturePoint.z,
0))
{
TBWorkShop->LinkToWorkShop(workshop); // Link our point to the capture point (for faction changement)
AddCapturePoint(TBWorkShop); // Add this capture point to list for update this (view in Update() of OutdoorPvP)
}
}
else
{
m_Data32[BATTLEFIELD_TB_DATA_CAPTURED_FORT_ATT]–;
m_Data32[BATTLEFIELD_TB_DATA_CAPTURED_FORT_DEF]++;
workshop->GiveControlTo(GetDefenderTeam(), true); // Update control of this point (Keep TBWorkShop= to deffender team)
}
WorkShopList.insert(workshop);
}The error comes here :
if(TBWorkShop->SetCapturePointData(TBCapturePointDataBase[i].CapturePoint.entryh, m_MapId,
TBCapturePointDataBase[i].CapturePoint.x,
TBCapturePointDataBase[i].CapturePoint.y,
TBCapturePointDataBase[i].CapturePoint.z,
0))
Any an possible fix ? Pls no Hackfixxes