From 6a02d531e10ec5eec2b4b8907681cdcd48dd2e2a Mon Sep 17 00:00:00 2001 From: Jared Gould Date: Mon, 19 Feb 2007 19:39:21 +0000 Subject: [PATCH] Fixed data population order git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@531 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d --- src/enginuity/newmaps/util/ECUDataUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enginuity/newmaps/util/ECUDataUtil.java b/src/enginuity/newmaps/util/ECUDataUtil.java index 27357149..d4ff37e3 100644 --- a/src/enginuity/newmaps/util/ECUDataUtil.java +++ b/src/enginuity/newmaps/util/ECUDataUtil.java @@ -79,7 +79,7 @@ public final class ECUDataUtil { // Build single datacell bytes byte[] cellBytes = new byte[dataSize]; for (int i = 0; i < dataSize; i++) { - cellBytes[i] = input[address + dataSize * x * y]; + cellBytes[i] = input[address + dataSize * (x * metadata.getSizeY() + y)]; } // Get DataCell and add to array