aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManuel Carrasco <manue.l@live.com.ar>2012-03-04 13:29:05 -0300
committerKandera <KanderaDev@gmail.com>2012-08-20 13:48:48 -0400
commitce17607595a0fd83a0ed95bbccd132c5a5738598 (patch)
tree39719fe4717f62414190062ea62b4585ae34c242 /src
parent27bfafe0e15ab07b98f3684c6f3ae98100cab1c2 (diff)
BF/Battlefield: Small improvement, thanks to Subv.
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlefield/Battlefield.cpp4
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;