Jump to content

[patch][6135] Typo In Motionmaster.cpp


Guest Eden

Recommended Posts

just an else is missing here:

Index: src/game/MotionMaster.cpp
===================================================================
--- src/game/MotionMaster.cpp        (revision 6133)
+++ src/game/MotionMaster.cpp        (working copy)
@@ -145,7 +145,7 @@
                DEBUG_LOG("Creature (Entry: %u GUID: %u) targeted home", i_owner->GetEntry(), i_owner->GetGUIDLow());
                Mutate(new HomeMovementGenerator<Creature>());
        }
-        if(i_owner->GetTypeId()==TYPEID_UNIT && ((Creature*)i_owner)->GetCharmerOrOwnerGUID())
+        else if(i_owner->GetTypeId()==TYPEID_UNIT && ((Creature*)i_owner)->GetCharmerOrOwnerGUID())
        {
                sLog.outError("Pet or controlled creature (Entry: %u GUID: %u) attempt targeted home", 
                        i_owner->GetEntry(), i_owner->GetGUIDLow() );

Link to comment
Share on other sites

×
×
  • 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