aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2012-06-30 10:43:34 +0200
committerQAston <qaston@gmail.com>2012-06-30 10:43:34 +0200
commit469c7a0955b819655dbf9ed0ab4c14fcb5a4cc09 (patch)
treed90155738abe6f2b3bc52f5244fe4320871a974e /src
parent067c27d29920baaa97a242dea8d192dc848fdbd8 (diff)
Core/Scripts: fix a crash from e0997874f5bf8d38b67ad3dee66e3d808dd1a059
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Spells/SpellScript.cpp2
-rwxr-xr-xsrc/server/game/Spells/SpellScript.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index f033a4c043e..633e08e6fb1 100755
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -224,7 +224,7 @@ bool SpellScript::TargetHook::CheckEffect(SpellInfo const* spellEntry, uint8 eff
spellEntry->Effects[effIndex].TargetB.GetTarget() != targetType)
return false;
- SpellImplicitTargetInfo targetType(targetType);
+ SpellImplicitTargetInfo targetType(this->targetType);
switch (targetType.GetSelectionCategory())
{
case TARGET_SELECT_CATEGORY_CHANNEL: // SINGLE
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index 9b1afd75405..51631bb8ffe 100755
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -200,7 +200,7 @@ class SpellScript : public _SpellScript
{
public:
TargetHook(uint8 _effectIndex, uint16 _targetType, bool _area);
- bool CheckEffect(SpellInfo const* spellEntry, uint8 targetType);
+ bool CheckEffect(SpellInfo const* spellEntry, uint8 effIndex);
std::string ToString();
protected:
uint16 targetType;