gcc warning fix

This commit is contained in:
MihailRis
2024-04-29 01:17:56 +03:00
parent c561466f64
commit 83e7cedffe
4 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -360,8 +360,7 @@ void Hud::openPermanent(UiDocument* doc) {
auto invview = std::dynamic_pointer_cast<InventoryView>(root);
if (invview) {
auto inventory = player->getInventory();
invview->bind(inventory, frontend);
invview->bind(player->getInventory(), frontend);
}
add(HudElement(hud_element_mode::permanent, doc, doc->getRoot(), false));
}