wrong signature in a few overrides

This commit is contained in:
faramir118
2012-04-11 19:56:05 +02:00
committed by Machiavelli
parent c7927a7796
commit c09cd26739
3 changed files with 4 additions and 4 deletions
@@ -116,9 +116,9 @@ public:
DoUpdateWorldState(WORLD_STATE_BM_RIFT, 0); DoUpdateWorldState(WORLD_STATE_BM_RIFT, 0);
} }
bool IsEncounterInProgress() bool IsEncounterInProgress() const
{ {
if (GetData(TYPE_MEDIVH) == IN_PROGRESS) if (const_cast<instance_dark_portal_InstanceMapScript*>(this)->GetData(TYPE_MEDIVH) == IN_PROGRESS)
return true; return true;
return false; return false;
@@ -759,7 +759,7 @@ class spell_powering_up : public SpellScriptLoader
uint32 spellId; uint32 spellId;
bool Validate(SpellEntry const* /*spellEntry*/) bool Validate(SpellInfo const* /*spellEntry*/)
{ {
spellId = sSpellMgr->GetSpellIdForDifficulty(SPELL_SURGE_OF_SPEED, GetCaster()); spellId = sSpellMgr->GetSpellIdForDifficulty(SPELL_SURGE_OF_SPEED, GetCaster());
if (!sSpellMgr->GetSpellInfo(spellId)) if (!sSpellMgr->GetSpellInfo(spellId))
@@ -1273,7 +1273,7 @@ class go_ulduar_tower : public GameObjectScript
public: public:
go_ulduar_tower() : GameObjectScript("go_ulduar_tower") { } go_ulduar_tower() : GameObjectScript("go_ulduar_tower") { }
void OnDestroyed(GameObject* go, Player* /*player*/, uint32 /*value*/) void OnDestroyed(GameObject* go, Player* /*player*/)
{ {
InstanceScript* instance = go->GetInstanceScript(); InstanceScript* instance = go->GetInstanceScript();
if (!instance) if (!instance)