- Duke/RR: Fix RR crash while operating weapon outside of a sector (noclipping, etc).

This commit is contained in:
Mitch Richters 2021-12-07 21:42:21 +11:00
parent af96180123
commit 6aba76cfe5

View file

@ -2710,7 +2710,7 @@ static void operateweapon(int snum, ESyncBits actions, sectortype* psectp)
auto p = &ps[snum];
auto pact = p->GetActor();
int i, k;
int psectlotag = psectp->lotag;
int psectlotag = psectp ? psectp->lotag : 857;
if (!isRRRA() && p->curr_weapon >= MOTORCYCLE_WEAPON) return;
switch (p->curr_weapon)