From 2b168fedb77dd085ecc8f0fccd57d0d3414759d0 Mon Sep 17 00:00:00 2001
From: Romain BERNARD <romain.bernard@uca.fr>
Date: Thu, 20 Jun 2024 10:20:28 +0200
Subject: [PATCH] fix typo

---
 src/routes/vehicle/SAEVRoute.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/routes/vehicle/SAEVRoute.cpp b/src/routes/vehicle/SAEVRoute.cpp
index f0068f3..0255411 100644
--- a/src/routes/vehicle/SAEVRoute.cpp
+++ b/src/routes/vehicle/SAEVRoute.cpp
@@ -73,7 +73,7 @@ void SAEVRoute::insertRequest(size_t requestId, SAEVKeyPoint &originRequestPrede
 
 void SAEVRoute::removeRequest(size_t requestId) {
     //Before undoing the insertion, update weights on the route
-    addRequestWeightToRoute(requestId);
+    removeRequestWeightFromRoute(requestId);
 
     SAEVKeyPoint& originKp = getOrigin(requestId);
     SAEVKeyPoint& destinationKp = getDestination(requestId);
-- 
GitLab