Fixed mirror dimension detection for off-grid rooms like Devil Deal

This commit is contained in:
Wofsauge committed 2021-10-21 19:06:20 +02:00
1 parent 8bea7679d7
commit 36d7652732
1 file changed
+1 -1
+1 -1
View File
@@ -377,7 +377,7 @@ local function IsMirror()
local level = game:GetLevel()
local id = level:GetCurrentRoomIndex()
return GetPtrHash(level:GetRoomByIdx(id)) == GetPtrHash(level:GetRoomByIdx(id, 1))
return id >=0 and GetPtrHash(level:GetRoomByIdx(id)) == GetPtrHash(level:GetRoomByIdx(id, 1))
end
local isMirrorRoom = false