mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
gcc warning fix
This commit is contained in:
parent
c561466f64
commit
83e7cedffe
4 changed files with 7 additions and 8 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef SRC_HUD_H_
|
||||
#define SRC_HUD_H_
|
||||
#ifndef FRONTEND_HUD_H_
|
||||
#define FRONTEND_HUD_H_
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
|
|
@ -162,4 +162,4 @@ public:
|
|||
std::shared_ptr<Inventory> getBlockInventory();
|
||||
};
|
||||
|
||||
#endif // SRC_HUD_H_
|
||||
#endif // FRONTEND_HUD_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue