From bb23fe159fac1dd111750606ba9ae527378e388c Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:27:37 +0100 Subject: [PATCH] Fix copy constructor not using a const object --- code/fgame/characterstate.cpp | 2 +- code/fgame/characterstate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/fgame/characterstate.cpp b/code/fgame/characterstate.cpp index c280ad93..e0c672ff 100644 --- a/code/fgame/characterstate.cpp +++ b/code/fgame/characterstate.cpp @@ -77,7 +77,7 @@ Conditional::Conditional() Expression::Expression() {} -Expression::Expression(Expression& exp) +Expression::Expression(const Expression& exp) { int i; diff --git a/code/fgame/characterstate.h b/code/fgame/characterstate.h index 83d43b16..afc4d604 100644 --- a/code/fgame/characterstate.h +++ b/code/fgame/characterstate.h @@ -184,7 +184,7 @@ private: public: Expression(); - Expression(Expression& exp); + Expression(const Expression& exp); Expression(Script& script, State& state); void operator=(const Expression& exp);