Jump to content

[fix] AddonInfo before queue


Auntie Mangos

Recommended Posts

What bug does the patch fix? What features does the patch add?

- This patch would fix the bug that after being queued due to playerlimit addons are not loaded.

For which repository revision was the patch created?

- 7579

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

- http://getmangos.eu/community/viewtopic.php?id=7228

diff --git a/src/game/World.cpp b/src/game/World.cpp
index 22ae03f..4392803 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -226,6 +226,8 @@ World::AddSession_ (WorldSession* s)
    if(decrease_session)
        --Sessions;

+    s->SendAddonsInfo();
+
    if (pLimit > 0 && Sessions >= pLimit && s->GetSecurity () == SEC_PLAYER )
    {
        AddQueuedPlayer (s);
@@ -242,7 +244,6 @@ World::AddSession_ (WorldSession* s)
    packet << uint8 (s->Expansion());                       // 0 - normal, 1 - TBC, must be set in database manually for each account
    s->SendPacket (&packet);

-    s->SendAddonsInfo();
    UpdateMaxSessionCounters ();

    // Updates the population

Patchfile

Link to comment
Share on other sites

  • 39 years later...
  • 2 years later...
Guest
This topic is now closed to further replies.
×
×
  • 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