From f2e3ca388762a5fe253031d2973c3d346fe07401 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 170ef5028..381fef227 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -1225,6 +1225,7 @@ void AddBarrel(int i, int t) void AddShrine(int i) { + Objects[i]._oRndSeed = AdvanceRndSeed(); bool slist[NumberOfShrineTypes]; Objects[i]._oPreFlag = true;