aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Villager.cpp
diff options
context:
space:
mode:
authorVivyaCC <21315274+enginelesscc@users.noreply.github.com>2026-03-06 23:13:30 +0100
committervoid_17 <heroerror3@gmail.com>2026-03-07 23:58:21 +0700
commit6dfdd9032892f933a2cd23470ccd03149d114811 (patch)
tree21db394ccd0a003c1dbc255072a4d3c869990bb3 /Minecraft.World/Villager.cpp
parent7c2869c5b9825ea87b4e2a65c6337f09e84b3cdb (diff)
win cpp23 compat: Minecraft.World
Diffstat (limited to 'Minecraft.World/Villager.cpp')
-rw-r--r--Minecraft.World/Villager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/Villager.cpp b/Minecraft.World/Villager.cpp
index f2901291..19303b0d 100644
--- a/Minecraft.World/Villager.cpp
+++ b/Minecraft.World/Villager.cpp
@@ -513,7 +513,7 @@ void Villager::addOffers(int addCount)
}
// shuffle the list to make it more interesting
- std::random_shuffle(newOffers->begin(), newOffers->end());
+ std::shuffle(newOffers->begin(), newOffers->end(), std::mt19937{std::random_device{}()});
if (offers == NULL)
{