Skip to content

Commit

Permalink
Merge pull request #5855 from Wings-XI/mob_gil
Browse files Browse the repository at this point in the history
[cpp] Return exact gil amount when mob is set explicitly
  • Loading branch information
claywar authored May 31, 2024
2 parents f29495f + ed2f683 commit 546f9d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map/entities/mobentity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ uint32 CMobEntity::GetRandomGil()

if (min && max)
{
// make sure divide won't crash server
// Assume we want this exact amount
if (max <= min)
{
max = min + 2;
return min;
}

if (max - min < 2)
Expand Down

0 comments on commit 546f9d1

Please sign in to comment.