From 4637b2dc86e69b15acf89d643a1534fb9e5ba31e Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Feb 2022 17:55:12 +0100 Subject: fix: stop segfault caused by game ctor --- src/game/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/game.cpp') diff --git a/src/game/game.cpp b/src/game/game.cpp index 9b08adc..2c99c6a 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -3,7 +3,7 @@ #include #include -Game::Game(const std::shared_ptr &scene) : _scene(scene) {} +Game::Game(std::shared_ptr scene) : _scene(std::move(scene)) {} void Game::run() { -- cgit v1.2.3-18-g5258