summaryrefslogtreecommitdiff
path: root/src/gui/windows/inventorywindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r--src/gui/windows/inventorywindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp
index 9fc6b6b38..27caa2019 100644
--- a/src/gui/windows/inventorywindow.cpp
+++ b/src/gui/windows/inventorywindow.cpp
@@ -934,9 +934,8 @@ InventoryWindow *InventoryWindow::getFirstVisible()
if (((*it) != nullptr) && (*it)->isWindowVisible())
list.insert(*it);
}
- InventoryWindow *const window = dynamic_cast<InventoryWindow*>(
+ return dynamic_cast<InventoryWindow*>(
windowContainer->findFirstWidget(list));
- return window;
}
void InventoryWindow::nextTab()