]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/blaster.qc
Weapons: store switchweapon as direct weapon reference
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / blaster.qc
index 1063a9c66ef111d167723360fef49fd085499ca1..5ae4dd4b9d8f43a609ec2fe34b994c3c57544577 100644 (file)
@@ -191,7 +191,7 @@ void W_Blaster_Attack(
                                {
                                        case 0: // switch to last used weapon
                                        {
-                                               if(actor.switchweapon == WEP_BLASTER.m_id) // don't do this if already switching
+                                               if(PS(actor).m_switchweapon == WEP_BLASTER) // don't do this if already switching
                                                        W_LastWeapon();
                                                break;
                                        }