From 9403e3ffd25f53d184738f5fce6c80a5db414ff9 Mon Sep 17 00:00:00 2001
From: andrbl <andrbl@stud.ntnu.no>
Date: Thu, 7 Apr 2022 11:55:49 +0200
Subject: [PATCH] =?UTF-8?q?Oppdaterte=20ny()=20til=20=C3=A5=20bruke=20lesD?=
 =?UTF-8?q?ata()=20funk=20fra=20bane=20klassen=20i=20ruter.cpp.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ruter.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ruter.cpp b/ruter.cpp
index 2c15f87..c360b72 100644
--- a/ruter.cpp
+++ b/ruter.cpp
@@ -30,6 +30,7 @@ void Ruter::ny(const int& nr) {
         }
         case 2: {
             Bane* bane = new Bane;
+            bane->lesData();
             if (bane->ny(-1, -1) != nullptr)
                 alleRuter.insert(pair<int, Rute*>(nr, bane));
             break;
-- 
GitLab