Jump to content

Relocating In Dynamic Object Creation


Recommended Posts

Posted

Rev: 6216

What this patch fixes: invalid position at creating dynamic object

Index: src/game/DynamicObject.cpp
===
--- src/game/DynamicObject.cpp.orig         2008-07-02 14:37:03.000000000 +0700
+++ src/game/DynamicObject.cpp    2008-07-02 14:35:30.000000000 +0700
@@ -60,7 +60,7 @@
        SetInstanceId(caster->GetInstanceId());

        WorldObject::_Create(guidlow, HIGHGUID_DYNAMICOBJECT, caster->GetMapId());
-        Relocate(x,y,x,0);
+        Relocate(x,y,z,0);

        if(IsPositionValid())
        {

P.S.> I also think, that we must not check ispositionvalid() here, it's necessary for some spells such as conscecration, but it's only my opinion

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use