X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FCharacter.hh;h=00e5a4b2b6912dc8ceae0b27643d5f67496102ea;hp=96ac499001110bf1882d5f93e3c2634f4aa265b2;hb=df541170776dc4ac4f241ca480812bd70bcb6eca;hpb=fe9614821670d9affcb68fb3e45723b9d40d0b7e;ds=sidebyside diff --git a/src/Character.hh b/src/Character.hh index 96ac499..00e5a4b 100644 --- a/src/Character.hh +++ b/src/Character.hh @@ -123,7 +123,7 @@ struct Character : public Mf::Entity return state; } - State operator+(State state) const + State operator+(const State& state) const { State newState = *this; newState.position += state.position;