[11250] Fix create position for summoned creatures.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-15 09:43:04 +01:00
parent 789f513ede
commit 167ec0df42
2 changed files with 2 additions and 2 deletions

View file

@ -1653,7 +1653,7 @@ Creature* WorldObject::SummonCreature(uint32 id, float x, float y, float z, floa
if (GetTypeId()==TYPEID_PLAYER)
team = ((Player*)this)->GetTeam();
CreatureCreatePos pos(GetMap(), x, y, x, ang, GetPhaseMask());
CreatureCreatePos pos(GetMap(), x, y, z, ang, GetPhaseMask());
if (x == 0.0f && y == 0.0f && z == 0.0f)
pos = CreatureCreatePos(this, GetOrientation(), CONTACT_DISTANCE, ang);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11249"
#define REVISION_NR "11250"
#endif // __REVISION_NR_H__