Examples of errors detected by the V3067 diagnostic

V3067. It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics.


RunUO

V3067 It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics. BaseHouse.cs 1558


private void SetLockdown( Item i, bool locked, bool checkContains )
{
  if ( m_LockDowns == null )
    return;

  #region Mondain's Legacy
  if ( i is BaseAddonContainer )
    i.Movable = false;
  else
  #endregion

  i.Movable = !locked;
  i.IsLockedDown = locked;

  ....
}


Bugs Found

Checked Projects
377
Collected Errors
13 692