From 5b9c51d4b421edb9332124e0be2bc202bcac7b6e Mon Sep 17 00:00:00 2001 From: uruk Date: Tue, 12 Aug 2014 10:05:51 +0200 Subject: [PATCH] CGE2: Repair FXP's operator=(). --- engines/cge2/vga13h.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h index 346d140e3fb..553f183de47 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;