From b3fed6c36904287713ca82c08606b882ceaeff68 Mon Sep 17 00:00:00 2001 From: uruk Date: Mon, 11 Aug 2014 16:03:38 +0200 Subject: CGE2: Return value instead of reference in FXP's operator=. --- engines/cge2/vga13h.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h index cb823645dc..4d2d637212 100644 --- a/engines/cge2/vga13h.h +++ b/engines/cge2/vga13h.h @@ -56,7 +56,7 @@ class FXP { public: FXP(void) : v(0) {} FXP (int i0, int f0 = 0) : v((i0 * 256) + ((i0 < 0) ? -f0 : f0)) {} - FXP& operator=(const int& x) { v = x << 8; return *this; } + FXP operator=(const int& x) { v = x << 8; return *this; } FXP operator+(const FXP& x) const { FXP y; y.v = v + x.v; return y; } FXP operator-(const FXP& x) const { FXP y; y.v = v - x.v; return y; } FXP operator*(const FXP& x) const; -- cgit v1.2.3