BF/Battlefield: Small improvement, thanks to Subv.
This commit is contained in:
@@ -953,8 +953,8 @@ bool BfCapturePoint::SetCapturePointData(GameObject* capturePoint)
|
|||||||
m_capturePoint = capturePoint;
|
m_capturePoint = capturePoint;
|
||||||
|
|
||||||
// check info existence
|
// check info existence
|
||||||
GameObjectTemplate const* goinfo = sObjectMgr->GetGameObjectTemplate(capturePoint->GetEntry());
|
GameObjectTemplate const* goinfo = capturePoint->GetGOInfo();
|
||||||
if (!goinfo || goinfo->type != GAMEOBJECT_TYPE_CAPTURE_POINT)
|
if (goinfo->type != GAMEOBJECT_TYPE_CAPTURE_POINT)
|
||||||
{
|
{
|
||||||
sLog->outError("OutdoorPvP: GO %u is not capture point!", capturePoint->GetEntry());
|
sLog->outError("OutdoorPvP: GO %u is not capture point!", capturePoint->GetEntry());
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user