BF/Battlefield: Small improvement, thanks to Subv.

This commit is contained in:
Manuel Carrasco
2012-08-20 13:48:48 -04:00
committed by Kandera
parent 27bfafe0e1
commit ce17607595
+2 -2
View File
@@ -953,8 +953,8 @@ bool BfCapturePoint::SetCapturePointData(GameObject* capturePoint)
m_capturePoint = capturePoint;
// check info existence
GameObjectTemplate const* goinfo = sObjectMgr->GetGameObjectTemplate(capturePoint->GetEntry());
if (!goinfo || goinfo->type != GAMEOBJECT_TYPE_CAPTURE_POINT)
GameObjectTemplate const* goinfo = capturePoint->GetGOInfo();
if (goinfo->type != GAMEOBJECT_TYPE_CAPTURE_POINT)
{
sLog->outError("OutdoorPvP: GO %u is not capture point!", capturePoint->GetEntry());
return false;