From 9e81e7cb3d3a85d6070bcf76069fab1e67f96379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Sat, 14 May 2016 16:59:39 +0200 Subject: [PATCH] fixed bug where non square shaped maps wouldn't load --- cicaprojekt/Dungeon.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicaprojekt/Dungeon.java b/cicaprojekt/Dungeon.java index ee3502b..0a0510f 100644 --- a/cicaprojekt/Dungeon.java +++ b/cicaprojekt/Dungeon.java @@ -59,7 +59,7 @@ public class Dungeon { mapWidth = width; // remember this value mapHeight = height; - Tile[][] dungeon = new Tile[width][height]; + Tile[][] dungeon = new Tile[height][width]; String line; Gate tempgate = new Gate();