[Scummvm-cvs-logs] SF.net SVN: scummvm:[45864] scummvm/trunk/engines/sci/sfx/soundcmd.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Thu Nov 12 19:27:17 CET 2009
Revision: 45864
http://scummvm.svn.sourceforge.net/scummvm/?rev=45864&view=rev
Author: eriktorbjorn
Date: 2009-11-12 18:27:16 +0000 (Thu, 12 Nov 2009)
Log Message:
-----------
Silenced GCC warning. Since command is unsigned, it's always >= 0.
Modified Paths:
--------------
scummvm/trunk/engines/sci/sfx/soundcmd.cpp
Modified: scummvm/trunk/engines/sci/sfx/soundcmd.cpp
===================================================================
--- scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-11-12 16:20:19 UTC (rev 45863)
+++ scummvm/trunk/engines/sci/sfx/soundcmd.cpp 2009-11-12 18:27:16 UTC (rev 45864)
@@ -206,7 +206,7 @@
_param = argv[4].toUint16();
}
- if (command >= 0 && command < _soundCommands.size()) {
+ if (command < _soundCommands.size()) {
debugC(2, kDebugLevelSound, "%s", _soundCommands[command]->desc);
(this->*(_soundCommands[command]->sndCmd))(obj, handle, value);
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list