diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index fff9e87c5..8c008b120 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -438,7 +438,7 @@ uint32 Creature::ChooseDisplayId(const CreatureInfo* cinfo, const CreatureData* // Where it's expected to select one of two, model must have a alternative model defined (alternative model is normally the same as defined in ModelId1). // Same pattern is used in the above model selection, but the result may be ModelId3 and not ModelId2 as here. uint32 modelid_tmp = sObjectMgr.GetCreatureModelAlternativeModel(cinfo->ModelId[1]); - display_id = modelid_tmp ? modelid_tmp : cinfo->ModelId[1]; + display_id = modelid_tmp ? cinfo->ModelId[urand(0, 1)] : cinfo->ModelId[1]; } else if (cinfo->ModelId[0]) { diff --git a/src/game/OutdoorPvP/OutdoorPvPMgr.cpp b/src/game/OutdoorPvP/OutdoorPvPMgr.cpp index 331ed17b1..472e9155c 100644 --- a/src/game/OutdoorPvP/OutdoorPvPMgr.cpp +++ b/src/game/OutdoorPvP/OutdoorPvPMgr.cpp @@ -47,7 +47,7 @@ OutdoorPvPMgr::~OutdoorPvPMgr() #define LOAD_OPVP_ZONE(a) \ if (sWorld.getConfig(CONFIG_BOOL_OUTDOORPVP_##a##_ENABLED)) \ { \ - m_scripts[OPVP_ID_##a##] = new OutdoorPvP##a##(); \ + m_scripts[OPVP_ID_##a] = new OutdoorPvP##a(); \ ++counter; \ } /** @@ -160,7 +160,8 @@ void OutdoorPvPMgr::Update(uint32 diff) return; for (uint8 i = 0; i < MAX_OPVP_ID; ++i) - (*m_scripts[i]).Update(m_updateTimer.GetCurrent()); + if (m_scripts[i]) + m_scripts[i]->Update(m_updateTimer.GetCurrent()); m_updateTimer.Reset(); } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index ea25828d0..750e87fe3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "0140" + #define REVISION_NR "12104" #endif // __REVISION_NR_H__