Changed parameter from set_action().
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 12 Aug 2004 22:03:05 +0000 (22:03 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 12 Aug 2004 22:03:05 +0000 (22:03 +0000)
SVN-Revision: 1758

lib/special/sprite.cpp
lib/special/sprite.h

index 94e0153..5e43dc6 100644 (file)
@@ -98,7 +98,7 @@ Sprite::init_defaults(Action* act)
 }
 
 void
-Sprite::set_action(std::string& act)
+Sprite::set_action(std::string act)
 {
 Actions::iterator i = actions.find(act);
 action = i->second;
index e8b7937..5837bc6 100644 (file)
@@ -67,7 +67,7 @@ namespace SuperTux
       int get_current_frame() const;
 
       /** Set action (or state) */
-      void set_action(std::string& act);
+      void set_action(std::string act);
 
       float get_fps()
       {