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

This commit is contained in:
Magnus Norddahl 2016-10-17 11:54:03 +02:00
parent 931d241056
commit c9a9e93c66
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ bool changerenderer;
// Software OpenGL canvas
CUSTOM_CVAR(Bool, vid_used3d, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
{
if (self != currentcanvas)
if ((self ? 1 : 0) != currentcanvas)
Printf("You must restart " GAMENAME " for this change to take effect.\n");
}