Skip to content

Commit 8b1081f

Browse files
committed
fix crash
1 parent 3b3335d commit 8b1081f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/mod_zone_difficulty_handler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ std::string ZoneDifficulty::GetContentTypeString(uint32 type)
552552
case TYPE_RAID_HYJAL:
553553
typestring = "for Battle for Mount Hyjal.";
554554
break;
555+
case TYPE_RAID_SWP:
556+
typestring = "for Sunwell Plateau.";
557+
break;
555558
default:
556559
typestring = "-";
557560
}

src/mod_zone_difficulty_scripts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ class mod_zone_difficulty_rewardnpc : public CreatureScript
728728
}
729729
}
730730
// Number is too low... ALWAYS remember to check if the number is too low when adding new bracket. Else enjoy crash <3
731-
else if (action < 1900)
731+
else if (action < TYPE_MAX_TIERS * 100)
732732
{
733733
npcText = NPC_TEXT_ITEM;
734734
uint32 category = 0;

0 commit comments

Comments
 (0)