Fix warning: left shift count >= width of type

This commit is contained in:
dhewg 2011-12-03 02:46:57 +01:00
parent 6e89dac99e
commit 5dcf5389fa

View file

@ -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 ) {