From 9f4430ad928aad4d9643c10c1c3e0425b820074f Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 7 Sep 2018 09:40:13 -0400 Subject: [PATCH] Fixed save loader failing to load status effects --- core/src/io/anuke/mindustry/core/ContentLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/core/ContentLoader.java b/core/src/io/anuke/mindustry/core/ContentLoader.java index a00baf7cb0..dafd4966fc 100644 --- a/core/src/io/anuke/mindustry/core/ContentLoader.java +++ b/core/src/io/anuke/mindustry/core/ContentLoader.java @@ -201,7 +201,7 @@ public class ContentLoader{ //offset negative values by 256, as they are probably a product of byte overflow if(id < 0) id += 256; - if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null){ + if(temporaryMapper != null && temporaryMapper[type.ordinal()] != null && temporaryMapper[type.ordinal()].length != 0){ return (T)temporaryMapper[type.ordinal()][id]; }