From 5dcf5389fac2dcc6b0dd12cfd3dd261e994ff2b1 Mon Sep 17 00:00:00 2001 From: dhewg <dhewg@wiibrew.org> Date: Sat, 3 Dec 2011 02:46:57 +0100 Subject: [PATCH] Fix warning: left shift count >= width of type --- neo/d3xp/gamesys/SysCmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/d3xp/gamesys/SysCmds.cpp b/neo/d3xp/gamesys/SysCmds.cpp index 4b3dbed5..18fba188 100644 --- a/neo/d3xp/gamesys/SysCmds.cpp +++ b/neo/d3xp/gamesys/SysCmds.cpp @@ -335,7 +335,7 @@ void Cmd_Give_f( const idCmdArgs &args ) { } if ( give_all || idStr::Icmp( name, "weapons" ) == 0 ) { - player->inventory.weapons = BIT( MAX_WEAPONS ) - 1; + player->inventory.weapons = 0xffffffff >> ( 32 - MAX_WEAPONS ); player->CacheWeapons(); if ( !give_all ) {