Skip to content

Commit

Permalink
SpawnGroup: Fix 1/100 chance to bug out
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 8, 2025
1 parent d184962 commit d93ac6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Maps/SpawnGroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ uint32 SpawnGroup::GetEligibleEntry(std::map<uint32, uint32>& existingEntries, s
{
if (existingEntries[explicitly->Entry] > 0)
{
if (roll < static_cast<int>(explicitly->Chance))
if (roll <= static_cast<int>(explicitly->Chance))
return explicitly->Entry;

roll -= int32(explicitly->Chance);
Expand Down

0 comments on commit d93ac6a

Please sign in to comment.