Fix warning: left shift count >= width of type

This commit is contained in:
dhewg 2011-12-03 02:46:57 +01:00 committed by Daniel Gibson
parent a08e239e28
commit 7601f12ba4

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