diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-13 00:42:56 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-13 00:42:56 +0100 |
| commit | 5e5b152f4b62432655cc4069c1d95be636749b7d (patch) | |
| tree | 3fc1433561fb6c90a04f3a671afca4df91a653a4 /internal_rewrite/prediction.cpp | |
| parent | d106396b02c486c9135c505ed82b73431f2c27de (diff) | |
yo sick
Diffstat (limited to 'internal_rewrite/prediction.cpp')
| -rw-r--r-- | internal_rewrite/prediction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal_rewrite/prediction.cpp b/internal_rewrite/prediction.cpp index 28c4bc7..2f6f606 100644 --- a/internal_rewrite/prediction.cpp +++ b/internal_rewrite/prediction.cpp @@ -612,7 +612,9 @@ void c_prediction::run_command( user_cmd_t *ucmd ) { ucmd->m_sidemove = backup_sidemove;
ucmd->m_buttons = backup_buttons;
- if( auto wep = g_ctx.m_local->get_weapon( ) ) {
+ auto wep = g_ctx.m_local->get_weapon( );
+
+ if( wep ) {
wep->update_accuracy_penalty( );
g_ctx.m_weapon_inaccuracy = wep->get_inaccuracy( );
g_ctx.m_weapon_spread = wep->get_spread( );
|
