Jump to content

[fixed][BUG] 5-man Heroic doesnt load after 10386


Guest Forusim

Recommended Posts

You are right, there is a bug, and even one that might(pretty sure) crash on 25H

This should fix it, but I am not sure about the style, and I couldn't really test it alright (don't know any spawned mobs for all 4 difficulties)

diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 1fe54b0..4157d3a 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -208,14 +208,14 @@ bool Creature::InitEntry(uint32 Entry, uint32 team, const CreatureData *data )
    // and if more high version not exist must be used lesser version
    // for raid order different:
    // 10 man normal version must be used instead not existed 10 man heroic version
-    // 25 man normal version must be used instead not existed 24 man heroic version
+    // 25 man normal version must be used instead not existed 25 man heroic version
    CreatureInfo const *cinfo = normalInfo;
    for (uint8 diff = uint8(GetMap()->GetDifficulty()); diff > 0;)
    {
        // we already have valid Map pointer for current creature!
-        if (normalInfo->DifficultyEntry[diff])
+        if (normalInfo->DifficultyEntry[diff - 1])
        {
-            cinfo = ObjectMgr::GetCreatureTemplate(normalInfo->DifficultyEntry[diff]);
+            cinfo = ObjectMgr::GetCreatureTemplate(normalInfo->DifficultyEntry[diff - 1]);
            if (cinfo)
                break;                                      // template found


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