armcom
armcom copied to clipboard
Crash due to stop_firing variable not being set
I've had a report of a crash on line 8107:
UnboundLocalError: local variable 'stop_firing' referenced before assignment
Which should not be possible because stop_firing is set to False on line 7945, so I'm not sure how it happened. Have asked for more info.
Additional: the crash only occurs when the player is firing WP rounds.
The issue is that the stop_firing variable is not set if ammo type is WP or HCBI (see if statement on line 7947). Solution would be to move stop_firing = False before line 7947.
Actually the source file has been fixed already!