Skip to content

Commit

Permalink
Scripts: Add override to CheckInRoom() definitions
Browse files Browse the repository at this point in the history
Fixes -Winconsistent-missing-override
  • Loading branch information
DDuarte committed Jan 19, 2016
1 parent 954323d commit ac727ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/server/game/Instances/InstanceScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
BossBoundaryData::~BossBoundaryData()
{
for (const_iterator it = begin(); it != end(); ++it)
delete it->boundary;
delete it->Boundary;
}

void InstanceScript::SaveToDB()
Expand Down Expand Up @@ -106,7 +106,7 @@ void InstanceScript::LoadBossBoundaries(const BossBoundaryData& data)
{
for (BossBoundaryEntry const& entry : data)
if (entry.BossId < bosses.size())
bosses[entry.bossId].boundary.insert(entry.Boundary);
bosses[entry.BossId].boundary.insert(entry.Boundary);
}

void InstanceScript::LoadMinionData(const MinionData* data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class boss_drekthar : public CreatureScript
Talk(SAY_RESPAWN);
}

bool CheckInRoom()
bool CheckInRoom() override
{
if (me->GetDistance2d(me->GetHomePosition().GetPositionX(), me->GetHomePosition().GetPositionY()) > 50)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class boss_galvangar : public CreatureScript
Talk(SAY_BUFF);
}

bool CheckInRoom()
bool CheckInRoom() override
{
if (me->GetDistance2d(me->GetHomePosition().GetPositionX(), me->GetHomePosition().GetPositionY()) > 50)
{
Expand Down

0 comments on commit ac727ab

Please sign in to comment.