mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
propogate player smart-pointer usage
This commit is contained in:
parent
7c6b52cb2a
commit
0b31a19f47
5 changed files with 9 additions and 9 deletions
|
|
@ -645,6 +645,6 @@ void Hud::setPause(bool pause) {
|
|||
menu->setVisible(pause);
|
||||
}
|
||||
|
||||
Player* Hud::getPlayer() const {
|
||||
return frontend->getLevel()->player.get();
|
||||
std::shared_ptr<Player> Hud::getPlayer() const {
|
||||
return frontend->getLevel()->player;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ public:
|
|||
void remove(HudElement& element);
|
||||
void remove(std::shared_ptr<gui::UINode> node);
|
||||
|
||||
Player* getPlayer() const;
|
||||
std::shared_ptr<Player> getPlayer() const;
|
||||
};
|
||||
|
||||
#endif /* SRC_HUD_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue