Skip to content

Commit

Permalink
- Duke/RR: Fix RR crash while operating weapon outside of a sector (n…
Browse files Browse the repository at this point in the history
…oclipping, etc).
  • Loading branch information
mjr4077au committed Dec 7, 2021
1 parent af96180 commit 6aba76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/player_r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6aba76c

Please sign in to comment.