From 1266ed6dc121ee716fd70c4ec5a1986f318c674c Mon Sep 17 00:00:00 2001 From: cola98765 Date: Sat, 1 Jan 2022 13:31:21 +0100 Subject: [PATCH] fixed updateData --- src/main/java/com/seibel/lod/core/util/ThreadMapUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/seibel/lod/core/util/ThreadMapUtil.java b/src/main/java/com/seibel/lod/core/util/ThreadMapUtil.java index 5cf02a501..466426d98 100644 --- a/src/main/java/com/seibel/lod/core/util/ThreadMapUtil.java +++ b/src/main/java/com/seibel/lod/core/util/ThreadMapUtil.java @@ -168,10 +168,11 @@ public class ThreadMapUtil /** returns the array filled with 0's */ public static long[] getVerticalUpdateArray(int detailLevel) { + detailLevel--; //we are asking for a place to fit lower level detail, so this will never get called with value of 0 long[][] arrays = verticalUpdate.get(Thread.currentThread().getName()); if (arrays == null) { - arrays = new long[LodUtil.DETAIL_OPTIONS][]; + arrays = new long[LodUtil.DETAIL_OPTIONS - 1][]; verticalUpdate.put(Thread.currentThread().getName(), arrays); } long[] array = arrays[detailLevel];