mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Loot: Fixed crashes when generating loot on map that has no MapDifficulty data
Closes #29829
This commit is contained in:
@@ -73,6 +73,9 @@ void Load()
|
||||
|
||||
ItemContext GetContextForPlayer(MapDifficultyEntry const* mapDifficulty, Player const* player)
|
||||
{
|
||||
if (!mapDifficulty)
|
||||
return ItemContext::NONE;
|
||||
|
||||
auto evalContext = [](ItemContext currentContext, ItemContext newContext)
|
||||
{
|
||||
if (newContext == ItemContext::NONE)
|
||||
|
||||
Reference in New Issue
Block a user