diff options
author | Manuel Carrasco <manue.l@live.com.ar> | 2012-03-04 13:29:05 -0300 |
---|---|---|
committer | Kandera <KanderaDev@gmail.com> | 2012-08-20 13:48:48 -0400 |
commit | ce17607595a0fd83a0ed95bbccd132c5a5738598 (patch) | |
tree | 39719fe4717f62414190062ea62b4585ae34c242 | |
parent | 27bfafe0e15ab07b98f3684c6f3ae98100cab1c2 (diff) |
BF/Battlefield: Small improvement, thanks to Subv.
-rw-r--r-- | src/server/game/Battlefield/Battlefield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlefield/Battlefield.cpp b/src/server/game/Battlefield/Battlefield.cpp index b0bf1a41669..501351f2e4d 100644 --- a/src/server/game/Battlefield/Battlefield.cpp +++ b/src/server/game/Battlefield/Battlefield.cpp @@ -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; |