Jump to content

[FIX] [7724]Mangos crashes when a drunk player gets fall damage


Auntie Mangos

Recommended Posts

What features does the patch add?

Fix possible Mangos crashes when a drunk player gets fall damage

For which repository revision was the patch created?

master [7723]

Is there a thread in the bug report section or at lighthouse?

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

Who has been writing this patch?

Myself

diff --git a/src/game/GameEventMgr.cpp b/src/game/GameEventMgr.cpp
index 2ad481e..111f0bc 100644
--- a/src/game/GameEventMgr.cpp
+++ b/src/game/GameEventMgr.cpp
@@ -751,7 +751,7 @@ MANGOS_DLL_SPEC bool IsHolidayActive( HolidayIds id )
    GameEventMgr::ActiveEvents const& ae = gameeventmgr.GetActiveEventList();

    for(GameEventMgr::ActiveEvents::const_iterator itr = ae.begin(); itr != ae.end(); ++itr)
-        if(events[id].holiday_id==id)
+        if(events[*itr].holiday_id==id)
            return true;

    return false;

Link to comment
Share on other sites

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