aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authorRat@walamy <none@none>2010-05-16 17:45:45 +0200
committerRat@walamy <none@none>2010-05-16 17:45:45 +0200
commit9771757c4c9c2210a258e9bf477f06a4981d4794 (patch)
treedf021d18706b254ad1a0969c49686d7f158c2853 /src/game/Creature.cpp
parentc26399a96804cf4231dd6ec2e6f4e3ec437aac64 (diff)
you can now reload creatures from creature_template table
NOTE: reload is limited to one creature at a time Usage: .reload creature_template $entry Warning: this is mainly for developers, reloading a creature can cause unexpected behaviors!! --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index a78829f1669..4eefce656a7 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -803,6 +803,9 @@ bool Creature::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry,
AddUnitMovementFlag(MOVEMENTFLAG_SWIMMING);
}
}
+
+ LastUsedScriptID = m_creatureInfo->ScriptID;
+
return bResult;
}