[Fixed] Warning C4805

Warning C4805: '!=' : unsafe mix of type 'int' and type 'bool' in operation