[Scummvm-git-logs] scummvm master -> e880fd74edeb79852fe8746eb924055ea8facffc

wjp wjp at usecode.org
Fri Aug 26 18:58:06 CEST 2016


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:
e880fd74ed SCI32: Fix warning


Commit: e880fd74edeb79852fe8746eb924055ea8facffc
    https://github.com/scummvm/scummvm/commit/e880fd74edeb79852fe8746eb924055ea8facffc
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2016-08-26T18:57:43+02:00

Commit Message:
SCI32: Fix warning

Changed paths:
    engines/sci/engine/kgraphics32.cpp



diff --git a/engines/sci/engine/kgraphics32.cpp b/engines/sci/engine/kgraphics32.cpp
index f3eec59..51437f1 100644
--- a/engines/sci/engine/kgraphics32.cpp
+++ b/engines/sci/engine/kgraphics32.cpp
@@ -907,7 +907,7 @@ reg_t kPaletteFindColor32(EngineState *s, int argc, reg_t *argv) {
  */
 reg_t kPaletteSetGamma(EngineState *s, int argc, reg_t *argv) {
 	const uint8 gamma = argv[0].toUint16();
-	assert(gamma >= 0 && gamma <= 6);
+	assert(gamma <= 6);
 
 	warning("TODO: kPaletteSetGamma(%d)", gamma);
 





More information about the Scummvm-git-logs mailing list