We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7395cbc commit d1a3e59Copy full SHA for d1a3e59
src/object/ispy.cpp
@@ -124,7 +124,7 @@ Ispy::update(float dt_sec)
124
}
125
126
void
127
-Ispy::set_sprite_action(std::string action, int loops)
+Ispy::set_sprite_action(const std::string& action, int loops)
128
{
129
switch (m_dir)
130
src/object/ispy.hpp
@@ -39,7 +39,7 @@ class Ispy final : public MovingSprite
39
virtual void on_flip(float height) override;
40
41
private:
42
- void set_sprite_action(std::string action, int loops = -1);
+ void set_sprite_action(const std::string& action, int loops = -1);
43
44
45
enum IspyState {
0 commit comments