From 6ad763fc01e14cbd2b4aed3db4263cc224882892 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Fri, 25 May 2018 23:40:34 -0700 Subject: [PATCH] Fix flip-flopped arguments in RouteMap:_removeInternal --- CHANGES.md | 2 +- plugin/src/RouteMap.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index dc836788..d7517dbc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,7 @@ # Rojo Change Log ## Current master -* *No changes* +* Hotfix to prevent errors from being thrown when objects managed by Rojo are deleted ## 0.4.7 (May 25, 2018) * Added icons to the Rojo plugin, made by [@Vorlias](https://github.com/Vorlias)! ([#70](https://github.com/LPGhatguy/rojo/pull/70)) diff --git a/plugin/src/RouteMap.lua b/plugin/src/RouteMap.lua index 35d67ff6..0e0ceb65 100644 --- a/plugin/src/RouteMap.lua +++ b/plugin/src/RouteMap.lua @@ -47,7 +47,7 @@ function RouteMap:removeByRoute(route) local rbx = self._map[hashedRoute] if rbx ~= nil then - self:_removeInternal(hashedRoute, rbx) + self:_removeInternal(rbx, hashedRoute) end end @@ -55,7 +55,7 @@ function RouteMap:removeByRbx(rbx) local hashedRoute = self._reverseMap[rbx] if hashedRoute ~= nil then - self:_removeInternal(hashedRoute, rbx) + self:_removeInternal(rbx, hashedRoute) end end