TrinityCore/TrinityCore — comment on commit 33a68ca54e24e58da73c396c2317ee530c9e9b82
File: src/server/game/Battlefield/Battlefield.cpp line 956
By Subv:

You can directly access the gameobject type via capturePoint->GetGOInfo()