diff options
author | uruk | 2014-08-12 10:05:51 +0200 |
---|---|---|
committer | uruk | 2014-08-12 10:05:51 +0200 |
commit | 5b9c51d4b421edb9332124e0be2bc202bcac7b6e (patch) | |
tree | f17613a68066d5b5397bc7d33bb8f9e4446d0be9 | |
parent | c6033e046751c1699c600252d756218220ff484a (diff) | |
download | scummvm-rg350-5b9c51d4b421edb9332124e0be2bc202bcac7b6e.tar.gz scummvm-rg350-5b9c51d4b421edb9332124e0be2bc202bcac7b6e.tar.bz2 scummvm-rg350-5b9c51d4b421edb9332124e0be2bc202bcac7b6e.zip |
CGE2: Repair FXP's operator=().
-rw-r--r-- | engines/cge2/vga13h.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h index 346d140e3f..553f183de4 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; |