One less warning when building with GCC 4.7.1.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@5557 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Nikos Barkas 2012-12-05 08:33:39 +00:00
parent b16690139b
commit 6c4c51a646

View File

@ -121,7 +121,8 @@ MA 02110-1301, USA.
if (!_justSwitched && wave > _wave) // don't test for wave >= _wave - could give wrong results with very low frequencies
{
_justSwitched = YES;
_activeColor = ++_activeColor % count;
++_activeColor;
_activeColor %= count; //_activeColor = ++_activeColor % count; is potentially undefined operation
[self setColor:[_colors objectAtIndex:_activeColor]];
}
}