]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Avoid a division by 0 (g_weaponratefactor isn't initialized yet)
authorterencehill <piuntn@gmail.com>
Wed, 14 Sep 2016 11:19:29 +0000 (13:19 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 14 Sep 2016 11:19:29 +0000 (13:19 +0200)
qcsrc/common/stats.qh

index d6aa068ea67eb775da3cba979c9a62398e9cbcf2..15de0582766e63e9993fc8e777b48c653e84a145 100644 (file)
@@ -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)