mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
fix(Core/Scripts): apply safety improvements (#24635)
This commit is contained in:
@@ -142,7 +142,8 @@ void OutdoorPvPTF::ResetZoneToTeamControlled(TeamId team)
|
||||
|
||||
for (auto& [guid, tower] : _capturePoints)
|
||||
{
|
||||
dynamic_cast<OPvPCapturePointTF*>(tower)->ResetToTeamControlled(team);
|
||||
if (auto* capturePoint = dynamic_cast<OPvPCapturePointTF*>(tower))
|
||||
capturePoint->ResetToTeamControlled(team);
|
||||
}
|
||||
|
||||
SendUpdateWorldState(WORLD_STATE_OPVP_TF_UI_TOWER_COUNT_H, m_HordeTowersControlled);
|
||||
|
||||
Reference in New Issue
Block a user