]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Weapons: use correct weapon name for ITEM_WEAPON_PRIMORSEC
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 28 Oct 2015 08:32:36 +0000 (19:32 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 28 Oct 2015 08:32:36 +0000 (19:32 +1100)
qcsrc/server/weapons/weaponsystem.qc

index 7966e073bffa4b3b148a4c91002110a693bbaecd..e64391d83db1fe6d4bf7f29bf40ea1ef53f57d6e 100644 (file)
@@ -526,7 +526,7 @@ bool weapon_prepareattack_checkammo(Weapon thiswep, entity actor, bool secondary
                                actor,
                                MSG_MULTI,
                                ITEM_WEAPON_PRIMORSEC,
-                               thiswep,
+                               thiswep.m_id,
                                secondary,
                                (1 - secondary)
                                         );