fix bug where limit = -1 returning nothing

- internal room hierarchy function should treat -1 as no limit, it wasnt
This commit is contained in:
Sam Wedgwood 2023-07-18 15:43:05 +01:00
parent 14d4043b41
commit 0c7671dddb

View file

@ -52,7 +52,7 @@ func (querier *Queryer) QueryNextRoomHierarchyPage(ctx context.Context, walker r
// Depth first -> stack data structure
for len(unvisited) > 0 {
if len(discoveredRooms) >= limit {
if len(discoveredRooms) >= limit && limit != -1 {
break
}