diff options
author | Paul Gilbert | 2011-07-02 22:15:23 +1000 |
---|---|---|
committer | Paul Gilbert | 2011-07-02 22:15:23 +1000 |
commit | d510d2505b7c9e4968020de6926dea19cfb7fa34 (patch) | |
tree | 7bbf55f0688148a9da5a8f42781f0b9c56e11df5 /engines/cge/bitmap.cpp | |
parent | e782b53eab7d9c77f17e1393712bf8425f9349a0 (diff) | |
download | scummvm-rg350-d510d2505b7c9e4968020de6926dea19cfb7fa34.tar.gz scummvm-rg350-d510d2505b7c9e4968020de6926dea19cfb7fa34.tar.bz2 scummvm-rg350-d510d2505b7c9e4968020de6926dea19cfb7fa34.zip |
CGE: Fix for crash in BITMAP::solidAt when negative co-ordinates passed
Diffstat (limited to 'engines/cge/bitmap.cpp')
-rw-r--r-- | engines/cge/bitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp index dc06d9944e..3bcf751b40 100644 --- a/engines/cge/bitmap.cpp +++ b/engines/cge/bitmap.cpp @@ -313,7 +313,7 @@ bool Bitmap::solidAt(int x, int y) { return false; m = _v; - r = x % 4; + r = static_cast<uint16>(x) % 4; n0 = (SCR_WID * y + x) / 4, n = 0; while (r) { |