armcom icon indicating copy to clipboard operation
armcom copied to clipboard

Crash due to stop_firing variable not being set

Open sudasana opened this issue 7 years ago • 3 comments

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.

sudasana avatar Jul 14 '17 07:07 sudasana

Additional: the crash only occurs when the player is firing WP rounds.

sudasana avatar Jul 15 '17 07:07 sudasana

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.

chloraphil avatar Nov 02 '17 15:11 chloraphil

Actually the source file has been fixed already!

chloraphil avatar Nov 02 '17 16:11 chloraphil