]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/common.qc
Replace uses of the .weapons field with STAT(WEAPONS, player), doesn't replace the...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / common.qc
index 90aca172cc83f600e77c7d19e6a52405e7222547..06615c4eac8575465aed85fe57cbe5181c423940 100644 (file)
@@ -30,7 +30,7 @@ void W_GiveWeapon(entity e, int wep)
 {
        if (!wep) return;
 
-       e.weapons |= WepSet_FromWeapon(Weapons_from(wep));
+       STAT(WEAPONS, e) |= WepSet_FromWeapon(Weapons_from(wep));
 
        if (IS_PLAYER(e)) {
            Send_Notification(NOTIF_ONE, e, MSG_MULTI, ITEM_WEAPON_GOT, wep);