propogate player smart-pointer usage

This commit is contained in:
DanielProl1xy
2024-02-21 15:27:00 +03:00
parent 7c6b52cb2a
commit 0b31a19f47
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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;
}