Fixed: Bad way to loop a number between 0 and 5

This commit is contained in:
vl 2010-07-06 10:56:45 +02:00
parent 317ffa2ce0
commit 8ecf22ad3f

View file

@ -79,7 +79,7 @@ class CAHDisplayInfos : public IActionHandler
if( ClientCfg.Local || hasPrivilegeDEV() || hasPrivilegeSGM() || hasPrivilegeGM() || hasPrivilegeSG() || hasPrivilegeEM() || hasPrivilegeVG() )
#endif
{
ShowInfos = (ShowInfos++)%6;
ShowInfos = (ShowInfos+1)%6;
CGraph::Display = (ShowInfos != 0);
}