Fix some warnings introduced in a previous commit

This commit is contained in:
Aokromes
2017-12-10 13:17:08 +00:00
8 changed files with 9 additions and 9 deletions

View File

@@ -423,7 +423,7 @@ class go_blackened_urn : public GameObjectScript
{
go_blackened_urnAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
if (me->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE))
return false;

View File

@@ -379,7 +379,7 @@ class go_gong : public GameObjectScript
{
go_gongAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
InstanceScript* instance = me->GetInstanceScript();

View File

@@ -355,7 +355,7 @@ class go_gundrak_altar : public GameObjectScript
{
go_gundrak_altarAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
me->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
me->SetGoState(GO_STATE_ACTIVE);

View File

@@ -1650,7 +1650,7 @@ class go_mimiron_hardmode_button : public GameObjectScript
{
go_mimiron_hardmode_buttonAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
if (me->HasFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE))
return true;

View File

@@ -560,7 +560,7 @@ public:
{
go_palehoof_sphereAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
if (InstanceScript* instance = me->GetInstanceScript())
{

View File

@@ -529,7 +529,7 @@ class npc_wyrmrest_defender : public CreatureScript
{
uint32 const action = player->PlayerTalkClass->GetGossipOptionAction(gossipListId);
ClearGossipMenuFor(player);
if (gossipListId == GOSSIP_ACTION_INFO_DEF + 1)
if (action == GOSSIP_ACTION_INFO_DEF + 1)
{
SendGossipMenuFor(player, GOSSIP_TEXTID_DEF2, me->GetGUID());
// Makes player cast trigger spell for 49207 on self

View File

@@ -539,7 +539,7 @@ class go_skull_pile : public GameObjectScript
{
go_skull_pileAI(GameObject* go) : GameObjectAI(go) { }
bool GossipSelect(Player* player, uint32 menuId, uint32 gossipListId) override
bool GossipSelect(Player* player, uint32 /*menuId*/, uint32 gossipListId) override
{
ClearGossipMenuFor(player);
switch (gossipListId)

View File

@@ -393,7 +393,7 @@ class go_resonite_cask : public GameObjectScript
{
go_resonite_caskAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
if (me->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
me->SummonCreature(NPC_GOGGEROC, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 300000);
@@ -1277,7 +1277,7 @@ class go_massive_seaforium_charge : public GameObjectScript
{
go_massive_seaforium_chargeAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player, bool /*reportUse*/) override
bool GossipHello(Player* /*player*/, bool /*reportUse*/) override
{
me->SetLootState(GO_JUST_DEACTIVATED);
return true;