server: fix blocking of non-existent primary guns

I think driAn meant to use OR, as using AND leads to FALSE.
This commit is contained in:
Šarūnas Snapkauskas
2020-11-02 22:42:00 +01:00
committed by aurhat
parent 5d7035a14b
commit 4f8f2737a4
+1 -1
View File
@@ -2988,7 +2988,7 @@ void process(ENetPacket *packet, int sender, int chan)
case SV_PRIMARYWEAP:
{
int nextprimary = getint(p);
if(nextprimary<0 && nextprimary>=NUMGUNS) break;
if (nextprimary < 0 || nextprimary >= NUMGUNS) break;
cl->state.nextprimary = nextprimary;
break;
}