aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
committerChaplain <aionthefirst@gmail.com>2011-09-01 22:38:32 +0300
commitbea649d0451271eda60aadff6040c3e6a9899a3f (patch)
tree49383b7f9b8caac38552a4c6d0c65c34c22cc4e2 /src/server/scripts/World
parent0046083509304113a951519191a6a4d251cf2e5c (diff)
Core: cleanup.
*remove some garbage *little bit moore const func *fix process of args in vmap3_extractor
Diffstat (limited to 'src/server/scripts/World')
-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;