From 048c5e68f159266a3a8569b3565d5419e5a96ea0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 8 Jun 2019 11:28:33 -0400 Subject: [PATCH] Crash fix --- core/src/io/anuke/mindustry/editor/MapEditorDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java index 2bd3d9bd27..df834fb7f7 100644 --- a/core/src/io/anuke/mindustry/editor/MapEditorDialog.java +++ b/core/src/io/anuke/mindustry/editor/MapEditorDialog.java @@ -232,6 +232,7 @@ public class MapEditorDialog extends Dialog implements Disposable{ lastSavedRules = state.rules; hide(); //only reset the player; logic.reset() will clear entities, which we do not want + state.teams = new Teams(); player.reset(); state.rules = Gamemode.editor.apply(lastSavedRules.copy()); world.setMap(new Map(StringMap.of(