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