From fc5b7b3462f0a9e3f4705a5d3220d3ac2ea6c135 Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 9 Jun 2022 10:55:29 +0200 Subject: [PATCH] [diablo] Fix shrine rng (#4529) This bug was less sever in Diablo then Hellfire as it didn't fully initialize the object leading to them sometimes getting garbage as the RNG seed, but it was never working correctly. --- Source/objects.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/objects.cpp b/Source/objects.cpp index fbfdad94e..16adfcd36 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -1219,6 +1219,7 @@ void AddBarrel(Object &barrel) void AddShrine(int i) { + Objects[i]._oRndSeed = AdvanceRndSeed(); bool slist[NumberOfShrineTypes]; Objects[i]._oPreFlag = true;