From: terencehill Date: Wed, 14 Sep 2016 11:19:29 +0000 (+0200) Subject: Avoid a division by 0 (g_weaponratefactor isn't initialized yet) X-Git-Tag: xonotic-v0.8.2~586 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=61da4aa7f6e7b2f3bf222c85c3f73e76fec303cf;p=xonotic%2Fxonotic-data.pk3dir.git Avoid a division by 0 (g_weaponratefactor isn't initialized yet) --- diff --git a/qcsrc/common/stats.qh b/qcsrc/common/stats.qh index d6aa068ea..15de05827 100644 --- a/qcsrc/common/stats.qh +++ b/qcsrc/common/stats.qh @@ -64,7 +64,7 @@ REGISTER_STAT(WEAPON_NEXTTHINK, float) SPECTATE_COPYFIELD(_STAT(WEAPON_NEXTTHINK)) float W_WeaponRateFactor(entity this); #endif -REGISTER_STAT(WEAPONRATEFACTOR, float, W_WeaponRateFactor(this)) +REGISTER_STAT(WEAPONRATEFACTOR, float) REGISTER_STAT(GAMESTARTTIME, float) REGISTER_STAT(STRENGTH_FINISHED, float)