]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/overkill/hmg.qc
Hold weapon clip on the weapon entity
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / overkill / hmg.qc
index 8a1de98ada5cbb2f1fd3ec8a11dc8bf6333e88ea..05a036379c01f032ecab23150fba56e693eba3b7 100644 (file)
@@ -68,7 +68,7 @@ METHOD(HeavyMachineGun, wr_aim, void(entity thiswep, entity actor))
 
 METHOD(HeavyMachineGun, wr_think, void(entity thiswep, entity actor, .entity weaponentity, int fire))
 {
-    if(WEP_CVAR(hmg, reload_ammo) && actor.clip_load < WEP_CVAR(hmg, ammo)) { // forced reload
+    if(WEP_CVAR(hmg, reload_ammo) && actor.(weaponentity).clip_load < WEP_CVAR(hmg, ammo)) { // forced reload
         thiswep.wr_reload(thiswep, actor, weaponentity);
     } else
     {