mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix flip-flopped arguments in RouteMap:_removeInternal
This commit is contained in:
parent
c856a3e361
commit
6ad763fc01
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Rojo Change Log
|
# Rojo Change Log
|
||||||
|
|
||||||
## Current master
|
## Current master
|
||||||
* *No changes*
|
* Hotfix to prevent errors from being thrown when objects managed by Rojo are deleted
|
||||||
|
|
||||||
## 0.4.7 (May 25, 2018)
|
## 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))
|
* Added icons to the Rojo plugin, made by [@Vorlias](https://github.com/Vorlias)! ([#70](https://github.com/LPGhatguy/rojo/pull/70))
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ function RouteMap:removeByRoute(route)
|
||||||
local rbx = self._map[hashedRoute]
|
local rbx = self._map[hashedRoute]
|
||||||
|
|
||||||
if rbx ~= nil then
|
if rbx ~= nil then
|
||||||
self:_removeInternal(hashedRoute, rbx)
|
self:_removeInternal(rbx, hashedRoute)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -55,7 +55,7 @@ function RouteMap:removeByRbx(rbx)
|
||||||
local hashedRoute = self._reverseMap[rbx]
|
local hashedRoute = self._reverseMap[rbx]
|
||||||
|
|
||||||
if hashedRoute ~= nil then
|
if hashedRoute ~= nil then
|
||||||
self:_removeInternal(hashedRoute, rbx)
|
self:_removeInternal(rbx, hashedRoute)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue