diff options
author | uruk | 2014-08-11 16:03:38 +0200 |
---|---|---|
committer | uruk | 2014-08-11 16:03:38 +0200 |
commit | b3fed6c36904287713ca82c08606b882ceaeff68 (patch) | |
tree | 4120820bfff5d1fe58330e3fdba0d1a6c86ed008 /engines/cge2 | |
parent | 7dfd108f68f5e7f99df3b290c48a9d485cb9c3b7 (diff) | |
download | scummvm-rg350-b3fed6c36904287713ca82c08606b882ceaeff68.tar.gz scummvm-rg350-b3fed6c36904287713ca82c08606b882ceaeff68.tar.bz2 scummvm-rg350-b3fed6c36904287713ca82c08606b882ceaeff68.zip |
CGE2: Return value instead of reference in FXP's operator=.
Diffstat (limited to 'engines/cge2')
-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 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; |