aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.h
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2012-10-24 15:34:23 +0200
committerSpp <spp@jorge.gr>2012-10-24 15:34:48 +0200
commit9fbc4c0ae2acab3ceba717b33c72e2382a1e5bb8 (patch)
tree2190f494bc8830b8a695c5fcad612e4d0c350fee /src/server/game/Spells/SpellScript.h
parent013fb1f4d9131fc8ec45931445e6a05408dce8f9 (diff)
Core/Misc: reduced amount of string memory allocations (Step II)
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
-rwxr-xr-xsrc/server/game/Spells/SpellScript.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index b1a2097a8f9..26dda4d2327 100755
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -72,6 +72,8 @@ class _SpellScript
{
public:
EffectHook(uint8 _effIndex);
+ virtual ~EffectHook() { }
+
uint8 GetAffectedEffectsMask(SpellInfo const* spellEntry);
bool IsEffectAffected(SpellInfo const* spellEntry, uint8 effIndex);
virtual bool CheckEffect(SpellInfo const* spellEntry, uint8 effIndex) = 0;
@@ -83,7 +85,7 @@ class _SpellScript
class EffectNameCheck
{
public:
- EffectNameCheck(uint16 _effName) {effName = _effName;};
+ EffectNameCheck(uint16 _effName) { effName = _effName; }
bool Check(SpellInfo const* spellEntry, uint8 effIndex);
std::string ToString();
private:
@@ -118,7 +120,7 @@ class _SpellScript
virtual bool Load() { return true; }
// Function called when script is destroyed
// use for: deallocating memory allocated by script
- virtual void Unload() {}
+ virtual void Unload() { }
};
// SpellScript interface - enum used for runtime checks of script function calls