aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorQAston <qaston@gmail.com>2011-09-03 08:34:02 -0700
committerQAston <qaston@gmail.com>2011-09-03 08:34:02 -0700
commitdc01541111c707eb4a58f914ee6234bf93e968af (patch)
tree2aa0ebd1edfb631e5ad456cb615703997bf95543 /src/server/scripts
parent79fb3d487edf221f0c404d0b7f3959f9f1f6b7b2 (diff)
parentbea649d0451271eda60aadff6040c3e6a9899a3f (diff)
Merge pull request #2852 from Chaplain/cleanup2
Core/Misc: Cleanup - remove unused variables, add some const modifiers to functions, fix process of args in vmap3_extractor
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/World/go_scripts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp
index fba7b44d789..d99501f6aaa 100644
--- a/src/server/scripts/World/go_scripts.cpp
+++ b/src/server/scripts/World/go_scripts.cpp
@@ -313,10 +313,10 @@ public:
{
if (!creature->IsHostileTo(player))
{
- uint32 Spell = 0;
-
if (FactionTemplateEntry const* pFaction = creature->getFactionTemplateEntry())
{
+ uint32 Spell = 0;
+
switch(pFaction->faction)
{
case 1011: Spell = SPELL_REP_LC; break;