[Scummvm-cvs-logs] scummvm master -> 5b9c51d4b421edb9332124e0be2bc202bcac7b6e

urukgit urukgit at users.noreply.github.com
Tue Aug 12 10:06:31 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5b9c51d4b4 CGE2: Repair FXP's operator=().


Commit: 5b9c51d4b421edb9332124e0be2bc202bcac7b6e
    https://github.com/scummvm/scummvm/commit/5b9c51d4b421edb9332124e0be2bc202bcac7b6e
Author: uruk (koppirnyo at gmail.com)
Date: 2014-08-12T10:05:51+02:00

Commit Message:
CGE2: Repair FXP's operator=().

Changed paths:
    engines/cge2/vga13h.h



diff --git a/engines/cge2/vga13h.h b/engines/cge2/vga13h.h
index 346d140..553f183 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;






More information about the Scummvm-git-logs mailing list