Pass parameter by const ref instead of const value.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2009-10-02 19:25:35 +00:00
parent d586fc11a7
commit 85aa1a444d

View File

@ -128,7 +128,7 @@ public:
class attack_type_callable : public game_logic::formula_callable {
public:
typedef map_location location;
attack_type_callable(const attack_type attack)
attack_type_callable(const attack_type& attack)
: att_(attack)
{
type_ = ATTACK_TYPE_C;