aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
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;