diff --git a/src/dialog/speech_bubble.cpp b/src/dialog/speech_bubble.cpp index 2a6d59c..efb4e5b 100644 --- a/src/dialog/speech_bubble.cpp +++ b/src/dialog/speech_bubble.cpp @@ -5,12 +5,12 @@ SpeechBubble::SpeechBubble(std::shared_ptr game, const std::string &spine_file, - const jngl::Text &text, - const jngl::Text &characterName, + jngl::Text text, + jngl::Text characterName, const jngl::Rgba characterNameColor ) : SpineObject(game, spine_file, "SpeechBubble", .2f), - text(text), + text(std::move(text)), textColor(game->getDialogManager()->textToColor((*game->lua_state)["config"]["default_font_color"])), characterName(characterName), characterNameColor(characterNameColor) diff --git a/src/dialog/speech_bubble.hpp b/src/dialog/speech_bubble.hpp index b7e2f88..cd72374 100644 --- a/src/dialog/speech_bubble.hpp +++ b/src/dialog/speech_bubble.hpp @@ -9,8 +9,8 @@ class SpeechBubble : public SpineObject { public: SpeechBubble(std::shared_ptr game, const std::string &spine_file, - const jngl::Text &text, - const jngl::Text &characterName, + jngl::Text text, + jngl::Text characterName, const jngl::Rgba characterNameColor); void draw() const override; bool step(bool force = false) override; diff --git a/src/scene_fade.cpp b/src/scene_fade.cpp index a8460fd..e9e648b 100644 --- a/src/scene_fade.cpp +++ b/src/scene_fade.cpp @@ -2,7 +2,7 @@ SceneFade::SceneFade(std::shared_ptr game, std::function loadScene) - : loadScene(std::move(loadScene)), game(game) {} + : loadScene(std::move(loadScene)), game(std::move(game)) {} void SceneFade::step() { if (loadScene) {