From 6be6499631a689fadbb68fdb10358ac809ea7652 Mon Sep 17 00:00:00 2001 From: qndel Date: Wed, 21 Apr 2021 19:06:07 +0200 Subject: [PATCH] fix secluded crash (#1635) --- Source/objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/objects.cpp b/Source/objects.cpp index 861e19275..23746b8c5 100644 --- a/Source/objects.cpp +++ b/Source/objects.cpp @@ -4032,7 +4032,7 @@ bool OperateShrineSecluded(int pnum) if (pnum != myplr) return true; - std::fill(&automapview[0][0], &automapview[DMAXX][DMAXY], true); + std::fill(&automapview[0][0], &automapview[0][0] + sizeof(automapview), true); InitDiabloMsg(EMSG_SHRINE_SECLUDED);